:root {
    --bg: #0b0f1a;
    --surface: #131928;
    --surface2: #1a2235;
    --border: rgba(255,255,255,0.06);
    --accent: #00e5c3;
    --accent2: #ff6b6b;
    --accent3: #7c6ff7;
    --text: #e8edf5;
    --muted: #6b7a99;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.left-inner {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.brand-mark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.02em;
    color: var(--text);
}

.brand-mark span {
    color: var(--accent);
}

.left-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

.left-sub {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.stats-preview {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: border-color .2s;
}

.preview-card:hover {
    border-color: rgba(0,229,195,.2);
}

.preview-card > i {
    font-size: 1.4rem;
    color: var(--accent);
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.preview-val {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1;
}

.preview-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .2rem;
}

.left-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .15;
    pointer-events: none;
}

.left-orb-1 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: -80px;
    right: -80px;
}

.left-orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent3);
    bottom: -50px;
    left: -50px;
}

.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

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

.login-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0,229,195,.1);
    border: 1px solid rgba(0,229,195,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0 auto 1rem;
}

.login-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: .35rem;
}

.login-sub {
    color: var(--muted);
    font-size: .83rem;
}

.alert-custom {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .82rem;
    margin-bottom: 1.25rem;
}

.alert-danger-custom {
    background: rgba(255,107,107,.1);
    border: 1px solid rgba(255,107,107,.2);
    color: var(--accent2);
}

.alert-success-custom {
    background: rgba(0,229,195,.1);
    border: 1px solid rgba(0,229,195,.2);
    color: var(--accent);
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-label-custom {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .9rem;
    pointer-events: none;
}

.input-custom {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    padding: .7rem 2.8rem .7rem 2.6rem;
    font-size: .88rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .2s, background .2s;
    outline: none;
}

.input-custom::placeholder {
    color: var(--muted);
    opacity: .7;
}

.input-custom:focus {
    border-color: var(--accent);
    background: var(--surface2);
}

.input-custom.is-error {
    border-color: var(--accent2);
}

.toggle-password {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    font-size: .95rem;
    line-height: 1;
    transition: color .2s;
}

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

.forgot-link {
    font-size: .75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}

.forgot-link:hover {
    opacity: .75;
    text-decoration: underline;
}

.remember-row {
    margin-bottom: 1.5rem;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.checkbox-custom input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-custom input:checked + .checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #0b0f1a;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.checkbox-label {
    font-size: .82rem;
    color: var(--muted);
}

.btn-login {
    width: 100%;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: #0b0f1a;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    padding: .8rem;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    position: relative;
}

.btn-login:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    opacity: .7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(11,15,26,.3);
    border-top-color: #0b0f1a;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
    margin-right: .4rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: .75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-row {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: .83rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    padding: .6rem;
    cursor: pointer;
    transition: all .2s;
}

.btn-social:hover {
    color: var(--text);
    border-color: rgba(255,255,255,.15);
    background: var(--surface2);
}

.btn-social i {
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    color: var(--muted);
    font-size: .72rem;
}

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

.login-box {
    animation: fadeSlideIn .45s ease both;
}

@media (max-width: 991px) {
    .login-right {
        width: 100%;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 1.5rem 1rem;
    }
}
