/* ===========================
   Login - Propuesta 7: Card Blanca Centrada
   =========================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Gilroy-Bold', sans-serif;
}

/* ---------- Fondo con imagen + overlay oscuro ---------- */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('/assets/fondo-login.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* ---------- Card blanca centrada ---------- */
#formContent {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 48px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ---------- Branding (logo) ---------- */
.login-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-logo {
    max-width: 230px;
    width: 100%;
    height: auto;
}

.login-brand h1 {
    font-size: 20px;
    font-weight: 700;
    color: #52525B;
    letter-spacing: 1px;
    margin: 0;
}

.login-brand p {
    font-size: 14px;
    color: #71717A;
    margin: 0;
}

/* ---------- Campos del formulario ---------- */
.login-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.field-input {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    position: relative;
}

.field-input:focus-within {
    border-color: #F15D06;
}

.field-input .field-icon {
    color: #9CA3AF;
    font-size: 18px;
    flex-shrink: 0;
}

.field-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', 'Gilroy-Bold', sans-serif;
    color: #1A1A1A;
    outline: none;
    padding: 0;
    height: 100%;
    opacity: 1;
}

.field-input input::placeholder {
    color: #9CA3AF;
}

.field-input input:-webkit-autofill,
.field-input input:-webkit-autofill:hover,
.field-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #1A1A1A !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Toggle de contraseña ---------- */
.toggle-password {
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    outline: none;
    font-size: 16px;
    flex-shrink: 0;
}

.toggle-password:hover {
    color: #6B7280;
}

/* ---------- Botón de login ---------- */
.login-btn {
    width: 100%;
    height: 52px;
    background: #F15D06;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', 'Gilroy-Bold', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background: #D14800;
}

.login-btn i {
    font-size: 16px;
}

/* ---------- Footer ---------- */
.login-footer {
    font-size: 11px;
    color: #A1A1AA;
    text-align: center;
    margin: 0;
}

/* ---------- Animación ---------- */
.fadeIn {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 768px) {
    #formContent {
        padding: 36px 28px;
        max-width: 420px;
    }
}

@media only screen and (max-width: 480px) {
    #formContent {
        padding: 32px 20px;
        border-radius: 16px;
        gap: 24px;
    }

    .login-logo {
        max-width: 170px;
    }

    .field-input {
        height: 48px;
    }

    .login-btn {
        height: 48px;
    }
}
