.login-scene {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
}

/* ── Animated background orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    bottom: -8%;
    right: -4%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15), transparent 70%);
    top: 50%;
    left: 60%;
    animation: orbFloat3 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -25px) scale(1.1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 30px) scale(0.95); }
    66% { transform: translate(25px, -15px) scale(1.05); }
}

/* ── Login card ── */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 44px 36px 36px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Logo ── */
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(108, 92, 231, 0.6); }
}

/* ── Typography ── */
.login-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 300;
    margin-bottom: 28px;
    line-height: 1.45;
}

/* ── Error message ── */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.25);
    color: #fd79a8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: shakeErr 0.4s ease-in-out;
}

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

/* ── Form ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.input-wrapper .input-styled {
    width: 100%;
    padding: 13px 14px 13px 44px;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.input-wrapper .input-styled:focus {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.06);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 1;
}

.input-wrapper .input-styled:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-secondary);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* ── Login button ── */
.login-btn {
    margin-top: 6px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    width: 100%;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
    transition: all 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

/* ── Back link ── */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.25s ease;
}

.back-link:hover {
    color: var(--accent-secondary);
}

.back-link svg {
    transition: transform 0.25s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }

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

    .login-logo-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .orb-1 { width: 280px; height: 280px; }
    .orb-2 { width: 220px; height: 220px; }
    .orb-3 { width: 170px; height: 170px; }
}
