/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #97f8d8, #008b8b);
}

.container {
    position: relative;
    width: 70vw;
    height: 80vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
}

.signin-signup {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    padding: 0 20px;
}

.title {
    font-size: 2rem;
    color: #008b8b;
    margin-bottom: 10px;
}

.input-field {
    width: 100%;
    height: 50px;
    background: #f0f0f0;
    margin: 10px 0;
    border: 2px solid #00a99d;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.input-field i {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 18px;
}

.input-field input {
    flex: 5;
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #444;
}

.btn {
    width: 150px;
    height: 50px;
    border: none;
    border-radius: 50px;
    background: #00a99d;
    color: #fff;
    font-weight: 600;
    margin: 20px 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #008b8b;
}

.error-message {
    color: red;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

/* Panel de descripción a la derecha */
.panels-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0C9491, #57B584);
    color: #fff;
    text-align: center;
}

.panel .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel .content .titulo-derecho {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.panel .content #texto-derecho {
    font-size: 1.6rem;
    margin: 0 1.2rem;
}

.panel .image {
    width: 70%;
    margin-top: 20px;
}

/* ---------------------------------------- */
/*  Modal “Cuenta Inactiva” / Errores Login */
/* ---------------------------------------- */

/* overlay semitransparente */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.hidden {
  display: none;
}

/* caja del modal con degradado verde oscuro */
.modal-box {
  background: linear-gradient(135deg, #008b8b, #24a312);
  padding: 2rem;
  border-radius: 8px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff; /* texto blanco sobre verde */
}

/* título del modal */
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  /* o bien un color contrastante */
  color: #ddffdd;
}

/* mensaje dentro del modal */
.modal-message {
  margin-bottom: 1.5rem;
  color: #f0fff0;
}

/* botón del modal */
.modal-btn {
  padding: 0.5rem 1.5rem;
  background: #2e8b57;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background: #013220;
}

/* Ajustes para la responsividad */
@media (max-width: 768px) {
    .container {
        width: 90vw;
        height: auto;
        flex-direction: column;
    }

    .signin-signup {
        width: 100%;
        position: relative;
    }

    .panels-container {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        margin-top: 20px;
    }

    .panel .content {
        text-align: center;
    }

    .panel .image {
        width: 50%;
    }
}
