/* ==============================================
   LETICIA RAMOS - STYLES.CSS
   Diseño minimalista, cálido y profesional
   ============================================== */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fdfbf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CONTAINER --- */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 28px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- LOGO SECTION --- */
.logo-section {
    text-align: center;
    margin-bottom: 56px;
}

.logo-image {
    width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- HERO TEXT --- */
.hero-text {
    text-align: center;
    margin-bottom: 56px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 16px;
}

.subtitle-highlight {
    font-size: 15px;
    color: #c9a56d;
    line-height: 1.8;
    font-weight: 400;
}

/* --- FORM --- */
.access-form {
    width: 100%;
    margin-bottom: 48px;
}

.form-field {
    margin-bottom: 28px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.form-field input {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    color: #1a1a1a;
    background-color: #fff;
    border: 1.5px solid #e8e5e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input:focus {
    outline: none;
    border-color: #c9a56d;
    background-color: #fffef8;
    box-shadow: 0 0 0 3px rgba(201, 165, 109, 0.08);
}

.form-field input::placeholder {
    color: #bbb;
    font-weight: 300;
}

/* --- CONSENT FIELD --- */
.consent-field {
    margin: 36px 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.consent-label input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 14px;
    min-width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c9a56d;
}

.consent-text a {
    color: #c9a56d;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 165, 109, 0.4);
    transition: all 0.2s ease;
}

.consent-text a:hover {
    border-bottom-color: #c9a56d;
    color: #b38f54;
}

/* --- SUBMIT BUTTON --- */
.submit-btn {
    width: 100%;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background-color: #c9a56d;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.submit-btn:disabled {
    background-color: #e8e5e0;
    color: #aaa;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    background-color: #b38f54;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 109, 0.3);
}

.submit-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 165, 109, 0.2);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- MESSAGE BOX --- */
.message-box {
    width: 100%;
    padding: 18px 22px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 36px;
    display: none;
}

.message-box.visible {
    display: block;
}

.message-box.success {
    background-color: #f0f8f0;
    color: #2d5f2d;
    border-left: 4px solid #5ba05b;
}

.message-box.error {
    background-color: #fdf3f3;
    color: #b84343;
    border-left: 4px solid #e57373;
}

.message-box.info {
    background-color: #f3f7fc;
    color: #3d6a99;
    border-left: 4px solid #6ba3d4;
}

/* --- INFO NOTE --- */
.info-note {
    width: 100%;
    padding: 24px;
    background-color: #f9f7f3;
    border-left: 3px solid #c9a56d;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 48px;
}

.info-note a {
    color: #c9a56d;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 165, 109, 0.4);
    transition: all 0.2s ease;
}

.info-note a:hover {
    border-bottom-color: #c9a56d;
    color: #b38f54;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-top: 32px;
    border-top: 1px solid #e8e5e0;
    width: 100%;
    font-weight: 300;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .container {
        padding: 60px 24px;
    }

    .logo-image {
        width: 140px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .form-field input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .info-note {
        padding: 20px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 50px 20px;
    }

    .logo-image {
        width: 120px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }
}

/* --- PASSWORD RECOVERY LINK (ACTUALIZADO) --- */
.password-recovery-link {
    width: 100%;
    text-align: center;
    /* Ajuste de márgenes para separarlo del botón y de la caja de mensajes */
    margin-top: 16px; 
    margin-bottom: 36px; 
}

.password-recovery-link a {
    font-size: 14px;
    color: #c9a56d; /* Color de acento principal */
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 165, 109, 0.4);
    transition: all 0.2s ease;
    font-weight: 400;
    cursor: pointer; /* Asegura el puntero ya que es un href="#" */
}

.password-recovery-link a:hover {
    border-bottom-color: #c9a56d;
    color: #b38f54; /* Color hover estándar del sitio */
}

/* NUEVO: Mensaje de ayuda para recuperación */
.recovery-message {
    display: none; /* Oculto por defecto */
    font-size: 13px;
    color: #b84343; /* Color de error sutil */
    margin-top: 8px;
    width: 100%;
}

/* --- FORM FIELD GROUP (PARA RECUPERAR) --- */
.form-field-group {
    display: flex;
    gap: 12px;
    align-items: flex-start; /* Alinea los elementos aunque tengan alturas distintas */
}

.form-field-group input {
    flex-grow: 1; /* El input toma el espacio disponible */
    width: auto; /* Anulación del 100% por defecto */
}

.form-field-group .submit-btn {
    flex-shrink: 0; /* El botón no se encoge */
    padding: 16px 20px; /* Hacemos el botón un poco más compacto */
    font-size: 15px;
    width: auto; /* Anulación del 100% por defecto */
    /* Asegura que el loader esté centrado */
    min-height: 55.5px; 
}

/* Estilo para el botón secundario (Solicitar) */
.submit-btn.secondary-btn {
    background-color: #f9f7f3;
    color: #c9a56d;
    border: 1.5px solid #e8e5e0;
    box-shadow: none;
}

.submit-btn.secondary-btn:not(:disabled):hover {
    background-color: #fffef8;
    border-color: #c9a56d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 165, 109, 0.1);
}

.submit-btn.secondary-btn:not(:disabled):active {
    transform: translateY(0);
    background-color: #f9f7f3;
    box-shadow: 0 2px 8px rgba(201, 165, 109, 0.1);
}

.submit-btn.secondary-btn:disabled {
    background-color: #fdfbf8;
    color: #aaa;
    border-color: #e8e5e0;
}

/* Estilo del loader para el botón secundario */
.submit-btn.secondary-btn .btn-loader {
    border-color: rgba(201, 165, 109, 0.3); /* Color base del loader */
    border-top-color: #c9a56d; /* Color del spinner */
}

/* Ajuste responsivo para el grupo */
@media (max-width: 480px) {
    .form-field-group {
        flex-direction: column;
        gap: 16px;
    }

    .form-field-group input,
    .form-field-group .submit-btn {
        width: 100%; /* Pasan a 100% en móvil */
        min-height: 54px;
    }
}
