.login-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg);
    overflow: hidden;
}

.login-theme-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.login-side-brand {
    flex: 0 0 52%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, var(--dark3) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 64px;
}

.login-side-brand::before,
.login-side-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.login-side-brand::before {
    width: 500px;
    height: 500px;
    background: rgba(0, 135, 255, 0.18);
    top: -150px;
    right: -100px;
}

.login-side-brand::after {
    width: 350px;
    height: 350px;
    background: rgba(253, 185, 38, 0.10);
    bottom: -100px;
    left: -80px;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.brand-tagline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.brand-sub {
    color: rgba(200, 216, 240, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.bstat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--accent);
    line-height: 1;
}

.bstat-label {
    font-size: .78rem;
    color: rgba(200, 216, 240, 0.6);
    margin-top: 2px;
}

.deco-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 135, 255, 0.22);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: .83rem;
    font-weight: 600;
    color: rgba(200, 216, 240, 0.9);
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    z-index: 3;
    white-space: nowrap;
}

.deco-card-1 {
    bottom: 120px;
    right: 24px;
    animation: float-badge 4s ease-in-out infinite;
}

.deco-card-2 {
    bottom: 60px;
    right: 60px;
    animation: float-badge 4s ease-in-out infinite 2s;
}

.login-side-brand::before {
    background-image: radial-gradient(circle, rgba(0,135,255,0.18) 0%, transparent 70%);
}

.login-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
    transition: background var(--transition);
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 6px;
}

.login-sub {
    color: var(--text-dim);
    font-size: .92rem;
}

.alert-login {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .88rem;
    color: #ef4444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: panel-in .3s ease;
}

.alert-success-login {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
    color: #22c55e;
}

.login-label {
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: block;
}

.input-login-wrap {
    position: relative;
}

.input-login-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-login {
    padding-left: 40px !important;
    padding-right: 44px !important;
    height: 48px;
    font-size: .95rem;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    transition: color var(--transition);
}

.btn-toggle-pass:hover { color: var(--primary); }

.login-forgot {
    font-size: .82rem;
    color: var(--primary);
    font-weight: 600;
    transition: opacity var(--transition);
}

.login-forgot:hover { opacity: .75; }

.login-check .form-check-input {
    border-color: var(--border);
    background-color: var(--surface2);
    width: 16px;
    height: 16px;
}

.login-check .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.login-check .form-check-label {
    font-size: .85rem;
    color: var(--text-dim);
}

.btn-login {
    height: 50px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: .3px;
    transition: all var(--transition);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 135, 255, 0.35);
}

.btn-login:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.input-login.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-login.is-valid {
    border-color: #22c55e !important;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-back {
    font-size: .83rem;
    color: var(--text-dim);
    font-weight: 600;
    transition: color var(--transition);
}

.login-back:hover { color: var(--primary); }

.login-footer-text {
    font-size: .78rem;
    color: var(--text-dim);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

.shake { animation: shake .4s ease; }

@media (max-width: 991px) {
    .login-side-form {
        padding: 40px 20px;
    }
    .login-box {
        max-width: 100%;
    }
}