/* ===========================
   LogInStyles.css (actualizado)
   =========================== */

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Mensaje de error estilizado */
.error-message {
    background-color: #ffe6e6;
    border-left: 4px solid #e74c3c;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: #c0392b;
    font-weight: bold;
}

body {
    background-image: url('FondoLogin.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.25rem;
}

/* Contenedor principal */
.login-container {
    display: flex;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 68.75rem;
    height: 90vh;
    max-height: 37.5rem;
}

/* Panel izquierdo */
.left-panel {
    background-color: #166379;
    color: white;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    width: 40%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-img {
    max-width: 300px;
}

.welcome-content h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #E1DFD9;
}

.welcome-content p {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Panel derecho */
.right-panel {
    background-color: #e1dfd9;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    position: relative;
}
.form-create {
    margin-top: 0rem;
    display: flex;
    justify-content: center;
}

.form-container p {
    text-align: center;
    margin-bottom: 2rem; /* AÑADIR */
    font-size: 1rem;
    font-family: 'Satoshi', sans-serif;
}
.form-container form p.bottom-text {
    margin-bottom: 0.5rem;
}

.form-container {
    width: 100%;
    max-width: 28rem;
    padding: 1.25rem;
}

.form-container h1 {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    color: #166379;
    text-align: center;
    margin-bottom: 0.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 50px;
    background-color: white;
    font-size: 1.125rem;
    outline: none;
}

/* Ajuste para el campo contraseña con botón mostrar */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    /* Más espacio para el ícono del botón */
    padding-right: 4rem;
}

/* Botón del ojo (mostrar/ocultar) */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    z-index: 10;
}
.toggle-password i {
    font-size: 1.25rem;
    color: #166379;
}
.toggle-password:focus {
    outline: none;
}

/* Botones */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-teal {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #e1dfd9;
    background-color: #166379;
}
.btn-teal:hover {
    background-color: #0f4e5e;
}

.btn-orange {
    padding: 0.5rem 2.5rem; /* más bajo */
    background-color: #d88429;
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
}
.btn-orange:hover {
    background-color: #c77418;
}

/* Link de recuperar contraseña */
.help-links {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}
.help-links a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}
.help-links a:hover {
    text-decoration: underline;
}

/* Centrar el botón “Ingresar” */
.form-submit {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.separator hr {
    flex: 1;
    border: none;
    border-top: 1px solid #aaa;
}

.separator span {
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Texto debajo del separador */
.bottom-text {
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0rem;
    font-family: 'Satoshi', sans-serif;
}


/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
        height: auto;
    }
    .left-panel,
    .right-panel {
        width: 100%;
        padding: 1.5rem;
    }
}
