/* ==============================
   LOGIN PAGE
   ============================== */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    animation: fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Fondo de la página login */
body {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: var(--green);
    color: var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 16px rgba(22, 61, 48, 0.25);
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.01em;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.875rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

.input-with-icon input:focus ~ i,
.input-with-icon:focus-within i {
    color: var(--green);
}

.login-button {
    margin-top: 0.5rem;
    padding: 0.9375rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 61, 48, 0.25);
    transition: background-color 0.2s ease, transform 0.12s ease-out, box-shadow 0.2s ease;
}

.login-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 61, 48, 0.3);
}

.login-button:active {
    transform: scale(0.97);
    box-shadow: none;
}

.form-error {
    background-color: var(--danger-50);
    border: 1px solid #e8c0b4;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
}

.form-error p {
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 2.25rem 1.5rem;
        box-shadow: none;
        background: var(--white);
        backdrop-filter: none;
        border: none;
    }
}
