/* ═══════════════════════════════════════════════
   LOGIN — Split background (oscuro | claro)
   Card blanca centrada entre ambos colores
   ═══════════════════════════════════════════════ */

/* ── Base ────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(to right, #2b2f3a 50%, #eef1f5 50%);
}

/* ── Card principal ──────────────────────────── */
.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
    box-shadow:
        -8px 0 32px rgba(0, 0, 0, 0.15),
        8px 0 32px rgba(0, 0, 0, 0.05);
    animation: cardEntrance 0.35s ease both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ──────────────────────────────────── */
.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d1b2, #00b4a0);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 209, 178, 0.25);
}

.login-logo .icon {
    color: #fff;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2b2f3a;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.45);
}

/* ── Error notification ──────────────────────── */
.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* ── Formulario ──────────────────────────────── */
.login-form .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    color: #4a4a4a;
}

.login-input {
    background: #f7f8fa !important;
    border: 1px solid #dce0e6 !important;
    border-radius: 8px !important;
    color: #2b2f3a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.login-input:focus {
    border-color: #00d1b2 !important;
    box-shadow: 0 0 0 2px rgba(0, 209, 178, 0.12) !important;
    background: #fff !important;
}

/* Íconos del input */
.login-form .control.has-icons-left .icon.is-left,
.login-form .control.has-icons-right .icon.is-right {
    color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* Toggle password */
.login-toggle-password {
    pointer-events: all !important;
    cursor: pointer;
    transition: color 0.2s;
}

.login-toggle-password:hover {
    color: #00d1b2 !important;
}

/* ── Botón de login ──────────────────────────── */
.login-btn {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    background: #00d1b2 !important;
    border: none !important;
    color: #fff !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 209, 178, 0.2);
}

.login-btn:hover {
    background: #00c4a7 !important;
    box-shadow: 0 4px 16px rgba(0, 209, 178, 0.3) !important;
}

.login-btn:active {
    background: #00b89c !important;
    box-shadow: 0 1px 4px rgba(0, 209, 178, 0.15) !important;
}

/* ── Footer ──────────────────────────────────── */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.login-footer p {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.3);
}

/* ── Transition Overlay ──────────────────────── */
.login-transition-overlay {
    position: fixed;
    inset: 0;
    background: #2b2f3a;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-transition-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

/* ── Responsive ──────────────────────────────── */
@media screen and (max-width: 480px) {
    .login-wrapper {
        background: linear-gradient(to bottom, #2b2f3a 50%, #eef1f5 50%);
    }

    .login-card {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 10px;
        box-shadow:
            0 -8px 32px rgba(0, 0, 0, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.05);
    }

    .login-logo {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .login-logo .mdi-48px::before {
        font-size: 32px;
    }

    .login-title {
        font-size: 1.25rem;
    }
}
