﻿*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --indigo-600: #2563eb;
    --indigo-700: #1d4ed8;
    --indigo-500: #3b82f6;
    --violet-600: #2563eb;
    --violet-500: #8b5cf6;
    --violet-700: #1d4ed8;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --emerald-500: #3b82f6;
    --emerald-100: #dbeafe;
    --emerald-700: #1d4ed8;
    --rose-500: #f43f5e;
    --rose-100: #ffe4e6;
    --rose-700: #be123c;
    --amber-400: #fbbf24;
}

html, body {
    height: 100%;
    font-family: 'Poppins',system-ui,sans-serif
}

body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--slate-900);
    overflow: hidden;
}

.login-hero {
    position: relative;
    background: radial-gradient(ellipse 60% 50% at 20% 10%, rgba(59,130,246,.35), transparent 60%), radial-gradient(ellipse 50% 50% at 85% 90%, rgba(29,78,216,.35), transparent 65%), linear-gradient(135deg,#0a2a6c 0%,#143a8a 45%,#1d4ed8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: floatOrb linear infinite;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,rgba(37,99,235,.25) 0%,transparent 70%);
    top: -100px;
    left: -100px;
    animation-duration: 18s
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,rgba(96,165,250,.22) 0%,transparent 70%);
    bottom: -80px;
    right: -80px;
    animation-duration: 22s;
    animation-delay: -8s
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,rgba(29,78,216,.18) 0%,transparent 70%);
    top: 40%;
    left: 20%;
    animation-duration: 15s;
    animation-delay: -4s
}

@keyframes floatOrb {
    0% {
        transform: translate(0,0) scale(1)
    }

    33% {
        transform: translate(30px,-20px) scale(1.05)
    }

    66% {
        transform: translate(-20px,30px) scale(.96)
    }

    100% {
        transform: translate(0,0) scale(1)
    }
}

#particles {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%,black 40%,transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 400px
}

.hero-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg,#1d4ed8,#3b82f6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 32px rgba(37,99,235,.5),0 0 0 1px rgba(255,255,255,.1);
}

.hero-brand {
    font-size: 28px;
    font-weight: 900;
    color: white;
    letter-spacing: -.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg,#fff 40%,#93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-tagline {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin-bottom: 40px
}

    .hero-tagline em {
        color: var(--amber-400);
        font-style: normal;
        font-weight: 600
    }

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center
}

.stat-item {
    text-align: center
}

.stat-num {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -.5px
}

.stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 18px;
    z-index: 5;
}

.card-a {
    top: 15%;
    right: 10%;
    animation: cardFloat 6s ease-in-out infinite
}

.card-b {
    bottom: 20%;
    left: 8%;
    animation: cardFloat 8s ease-in-out infinite;
    animation-delay: -3s
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.fc-label {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px
}

.fc-value {
    font-size: 18px;
    font-weight: 800;
    color: white
}

.fc-delta {
    font-size: 11px;
    color: #60a5fa;
    margin-top: 2px;
    font-weight: 600
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 60px 48px;
    overflow-y: auto;
}

.mobile-login-brand {
    display: none;
}

.login-box {
    width: 100%;
    max-width: 400px
}

.login-head {
    margin-bottom: 32px
}

.login-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -.4px;
    margin-bottom: 6px
}

.login-sub {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6
}

.demo-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg,#eff6ff,#eff6ff);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
}

.demo-badge-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px
}

.demo-badge-text {
    font-size: 12.5px;
    color: #1d4ed8;
    line-height: 1.5
}

    .demo-badge-text strong {
        display: block;
        font-weight: 700;
        margin-bottom: 2px
    }

.step-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px
}

.step {
    display: flex;
    align-items: center;
    flex: 1
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all .25s;
}

.step.done .step-circle {
    background: var(--emerald-500);
    color: white
}

.step.active .step-circle {
    background: var(--indigo-600);
    color: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,.2)
}

.step.pending .step-circle {
    background: var(--slate-100);
    color: var(--slate-400);
    border: 2px solid var(--slate-200)
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap
}

.step.done .step-label, .step.active .step-label {
    color: var(--slate-700)
}

.step.pending .step-label {
    color: var(--slate-400)
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--slate-200);
    margin: 0 8px;
    transition: background .25s
}

.form-group {
    margin-bottom: 18px
}

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--slate-600);
    margin-bottom: 7px
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-size: 14px;
    color: var(--slate-800);
    outline: none;
    transition: all .2s;
    font-family: inherit;
}

    .form-input:focus {
        border-color: var(--indigo-500);
        box-shadow: 0 0 0 3px rgba(37,99,235,.12)
    }

.input-row {
    position: relative
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400)
}

.input-row .form-input {
    padding-left: 40px
}

.forgot {
    display: block;
    text-align: right;
    font-size: 12.5px;
    color: var(--indigo-600);
    font-weight: 600;
    margin-top: 6px
}

    .forgot:hover {
        text-decoration: underline
    }

.submit-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: linear-gradient(135deg,var(--indigo-600),var(--violet-600));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

    .submit-btn:hover {
        background: linear-gradient(135deg,var(--indigo-700),var(--violet-700));
        box-shadow: 0 6px 24px rgba(37,99,235,.5);
        transform: translateY(-1px)
    }

    .submit-btn:active {
        transform: translateY(0)
    }

.otp-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 4px
}

.otp-input {
    width: 52px;
    height: 56px;
    text-align: center;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    outline: none;
    transition: all .2s;
    font-family: inherit;
}

    .otp-input:focus {
        border-color: var(--indigo-500);
        box-shadow: 0 0 0 3px rgba(37,99,235,.12)
    }

    .otp-input.filled {
        border-color: #3b82f6;
        background: #eff6ff
    }

.otp-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.otp-hint {
    font-size: 12.5px;
    color: var(--slate-500);
    text-align: center;
    margin-top: 12px
}

    .otp-hint button {
        color: var(--indigo-600);
        font-weight: 700;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 12.5px
    }

        .otp-hint button:hover {
            text-decoration: underline
        }

.alert-box {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px
}

.alert-error {
    background: var(--rose-100);
    color: var(--rose-700)
}

.alert-success {
    background: var(--emerald-100);
    color: var(--emerald-700)
}

.back-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all .2s
}

.back-btn:hover {
        background: #f8fafc
    }

@media(max-width:1100px) and (min-width:901px) {
    body {
        grid-template-columns: 44% 56%;
    }

    .login-hero {
        padding: 38px 28px;
    }

    .hero-logo {
        margin-bottom: 20px;
    }

    .hero-tagline {
        margin-bottom: 28px;
    }

    .hero-stats {
        gap: 22px;
    }

    .stat-num {
        font-size: 21px;
    }

    .floating-card {
        padding: 10px 13px;
    }

    .login-panel {
        padding: 42px 36px;
    }
}

@media(max-width:900px) {
    body {
        display: block;
        min-height: 100vh;
        overflow-y: auto;
        background: #f5f8fc;
    }

    .login-hero {
        display: none
    }

    .login-panel {
        display: block;
        min-height: calc(100vh - 96px);
        padding: 12px 24px 32px;
        background: #f5f8fc;
        overflow: visible;
    }

    .mobile-login-brand {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 96px;
        padding: 14px 76px 14px 24px;
        color: white;
        background:
            radial-gradient(circle at 86% 20%, rgba(255,255,255,.16), transparent 30%),
            linear-gradient(135deg,var(--slate-900) 0%,var(--indigo-700) 58%,var(--indigo-500) 100%);
        box-shadow: 0 12px 30px rgba(15,23,42,.16);
        overflow: hidden;
    }

    .mobile-login-brand::after {
        content: "";
        position: absolute;
        right: -28px;
        bottom: -52px;
        width: 132px;
        height: 132px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 50%;
    }

    .mobile-login-logo {
        width: 58px;
        height: 58px;
        margin-right: 14px;
        border-radius: 15px;
        object-fit: contain;
        background: rgba(255,255,255,.96);
        box-shadow: 0 8px 22px rgba(0,0,0,.18);
    }

    .mobile-login-name {
        font-size: 21px;
        font-weight: 900;
        letter-spacing: -.35px;
    }

    .mobile-login-tagline {
        margin-top: 3px;
        color: rgba(255,255,255,.7);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .9px;
        text-transform: uppercase;
    }

    .login-box {
        width: min(100%, 520px);
        max-width: 520px;
        margin: 0 auto;
        padding: 26px 20px 22px;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        background: white;
        box-shadow: 0 14px 36px rgba(15,23,42,.08);
    }

    .step-bar {
        margin-bottom: 24px;
    }

    .login-head {
        margin-bottom: 24px;
    }

    .login-title {
        font-size: 23px;
    }
}

@media(max-width:640px) {
    .login-panel {
        min-height: calc(100vh - 82px);
        padding-top: 8px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .mobile-login-brand {
        min-height: 82px;
        padding: 11px 68px 11px 16px;
    }

    .mobile-login-logo {
        width: 48px;
        height: 48px;
        margin-right: 11px;
        border-radius: 12px;
    }

    .mobile-login-name {
        font-size: 18px;
    }

    .mobile-login-tagline {
        font-size: 9px;
        letter-spacing: .7px;
    }

    .login-box {
        max-width: 460px;
        padding: 22px 16px 20px;
    }

    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .step-label {
        font-size: 9px;
        margin-left: 5px;
    }

    .step-line {
        margin: 0 5px;
    }
}

@media(max-width:420px) {
    .login-panel {
        padding-right: 10px;
        padding-left: 10px;
    }

    .mobile-login-brand {
        padding-left: 14px;
    }

    .login-box {
        padding: 20px 14px 18px;
    }

    .step-label {
        font-size: 8px;
    }

    .login-title {
        font-size: 21px;
    }

    .login-sub {
        font-size: 12px;
    }

    .demo-badge {
        padding: 10px 11px;
    }

    .demo-badge-text {
        font-size: 11px;
    }
}
.login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(37,99,235,.18);
}
