*{
    box-sizing:border-box;
}

:root{
    --navy:#1f235f;
    --blue:#2d39c7;
    --blue-dark:#202aa0;
    --blue-light:#eef0ff;
    --text:#1f2937;
    --muted:#667085;
    --border:#d9dee8;
    --surface:#ffffff;
    --background:#f5f6fa;
    --error:#b42318;
    --error-bg:#fff1f0;
    --error-border:#fecdca;
    --success:#067647;
    --success-bg:#ecfdf3;
    --success-border:#abefc6;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    color:var(--text);
    background:var(--background);
}

button,
input{
    font:inherit;
}

button{
    cursor:pointer;
}

.hidden{
    display:none !important;
}

.login-page{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(460px,1.08fr) minmax(430px,.92fr);
}

.login-visual{
    position:relative;
    overflow:hidden;
    min-height:100vh;
    background:
        linear-gradient(
            145deg,
            #171b52 0%,
            #202768 44%,
            #2d39c7 100%
        );
    color:#fff;
}

.visual-background{
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
}

.visual-grid{
    position:absolute;
    inset:0;
    opacity:.16;
    background-image:
        linear-gradient(
            rgba(255,255,255,.16) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.16) 1px,
            transparent 1px
        );
    background-size:44px 44px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.9),
            rgba(0,0,0,.1)
        );
}

.visual-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(10px);
}

.visual-glow-one{
    width:520px;
    height:520px;
    right:-180px;
    top:-150px;
    background:rgba(114,130,255,.24);
}

.visual-glow-two{
    width:380px;
    height:380px;
    left:-170px;
    bottom:-140px;
    background:rgba(99,230,255,.13);
}

.visual-content{
    position:relative;
    z-index:1;
    width:min(760px,100%);
    min-height:100vh;
    margin:0 auto;
    padding:52px 64px 40px;
    display:flex;
    flex-direction:column;
}

.visual-brand,
.mobile-brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.brand-mark{
    width:42px;
    height:42px;
    padding:8px;
    display:flex;
    align-items:flex-end;
    gap:4px;
    border-radius:11px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.24);
    box-shadow:0 10px 30px rgba(0,0,0,.16);
}

.brand-mark span{
    width:7px;
    border-radius:3px 3px 1px 1px;
    background:#fff;
}

.brand-mark span:nth-child(1){
    height:14px;
    opacity:.65;
}

.brand-mark span:nth-child(2){
    height:24px;
}

.brand-mark span:nth-child(3){
    height:19px;
    opacity:.82;
}

.brand-name{
    font-size:23px;
    line-height:1;
    font-weight:750;
    letter-spacing:-.02em;
}

.brand-label{
    margin-top:4px;
    font-size:12px;
    letter-spacing:.16em;
    text-transform:uppercase;
    opacity:.7;
}

.visual-message{
    max-width:650px;
    margin-top:auto;
    padding-top:72px;
}

.eyebrow,
.login-eyebrow{
    margin:0 0 12px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.eyebrow{
    color:#c9ceff;
}

.visual-message h1{
    max-width:650px;
    margin:0;
    font-size:clamp(40px,4.7vw,66px);
    line-height:1.03;
    letter-spacing:-.04em;
}

.visual-description{
    max-width:590px;
    margin:24px 0 0;
    font-size:18px;
    line-height:1.65;
    color:rgba(255,255,255,.78);
}

.visual-features{
    margin-top:56px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.feature{
    min-height:180px;
    padding:20px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:15px;
    background:rgba(255,255,255,.07);
    backdrop-filter:blur(8px);
}

.feature-number{
    margin-bottom:24px;
    color:#cdd2ff;
    font-size:12px;
    font-weight:700;
    letter-spacing:.12em;
}

.feature h2{
    margin:0 0 9px;
    font-size:16px;
}

.feature p{
    margin:0;
    color:rgba(255,255,255,.7);
    font-size:13px;
    line-height:1.55;
}

.visual-footer{
    margin-top:auto;
    padding-top:38px;
    color:rgba(255,255,255,.52);
    font-size:12px;
}

.login-panel{
    min-height:100vh;
    padding:34px 28px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(45,57,199,.08),
            transparent 28%
        ),
        #f7f8fb;
}

.login-card{
    width:min(470px,100%);
    padding:42px;
    background:var(--surface);
    border:1px solid #e3e7ee;
    border-radius:19px;
    box-shadow:
        0 28px 70px rgba(16,24,40,.12),
        0 2px 8px rgba(16,24,40,.04);
}

.mobile-brand{
    display:none;
    margin-bottom:32px;
    color:var(--navy);
}

.mobile-brand .brand-mark{
    background:var(--navy);
    border-color:transparent;
}

.login-header{
    margin-bottom:28px;
}

.login-eyebrow{
    color:var(--blue);
}

.login-header h2{
    margin:0;
    color:var(--navy);
    font-size:34px;
    line-height:1.12;
    letter-spacing:-.03em;
}

.login-header p{
    margin:10px 0 0;
    color:var(--muted);
    line-height:1.5;
}

.login-message{
    margin-bottom:18px;
    padding:13px 14px;
    border:1px solid transparent;
    border-radius:9px;
    font-size:14px;
    line-height:1.45;
}

.login-message.error{
    color:var(--error);
    background:var(--error-bg);
    border-color:var(--error-border);
}

.login-message.success{
    color:var(--success);
    background:var(--success-bg);
    border-color:var(--success-border);
}

.login-form{
    display:grid;
    gap:18px;
}

.form-field{
    display:grid;
    gap:7px;
}

.field-label{
    color:#344054;
    font-size:14px;
    font-weight:700;
}

.input-wrapper{
    position:relative;
    display:block;
}

.input-wrapper input{
    width:100%;
    min-height:50px;
    padding:12px 48px 12px 45px;
    border:1px solid var(--border);
    border-radius:10px;
    color:var(--text);
    background:#fff;
    outline:none;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.input-wrapper input::placeholder{
    color:#98a2b3;
}

.input-wrapper input:hover{
    border-color:#b8c0cf;
}

.input-wrapper input:focus{
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(45,57,199,.12);
}

.input-wrapper input.invalid{
    border-color:var(--error);
    background:#fffafa;
}

.input-icon{
    position:absolute;
    left:15px;
    top:50%;
    width:19px;
    height:19px;
    transform:translateY(-50%);
    color:#98a2b3;
    pointer-events:none;
}

.input-icon svg,
.password-toggle svg,
.login-security svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    width:34px;
    height:34px;
    padding:7px;
    transform:translateY(-50%);
    border:0;
    border-radius:7px;
    color:#667085;
    background:transparent;
}

.password-toggle:hover{
    color:var(--navy);
    background:#f2f4f7;
}

.field-error{
    min-height:17px;
    color:var(--error);
    font-size:12px;
}

.form-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.remember-option{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#475467;
    font-size:13px;
    cursor:pointer;
}

.remember-option input{
    width:17px;
    height:17px;
    margin:0;
    accent-color:var(--blue);
}

.login-button{
    position:relative;
    min-height:50px;
    margin-top:2px;
    padding:12px 18px;
    border:0;
    border-radius:10px;
    color:#fff;
    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );
    box-shadow:0 12px 24px rgba(45,57,199,.25);
    font-weight:700;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}

.login-button:hover:not(:disabled){
    transform:translateY(-1px);
    box-shadow:0 16px 28px rgba(45,57,199,.3);
}

.login-button:active:not(:disabled){
    transform:translateY(0);
}

.login-button:disabled{
    cursor:not-allowed;
    opacity:.72;
}

.button-loader{
    width:19px;
    height:19px;
    margin:0 auto;
    display:block;
    border:2px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .7s linear infinite;
}

.login-security{
    margin-top:24px;
    padding-top:20px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    border-top:1px solid #eaecf0;
    color:#667085;
    font-size:12px;
    line-height:1.5;
}

.login-security svg{
    flex:0 0 19px;
    width:19px;
    height:19px;
    margin-top:1px;
    color:var(--blue);
}

.login-footer{
    margin-top:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#98a2b3;
    font-size:12px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@media(max-width:1080px){
    .login-page{
        grid-template-columns:1fr 1fr;
    }

    .visual-content{
        padding-left:42px;
        padding-right:42px;
    }

    .visual-features{
        grid-template-columns:1fr;
        gap:12px;
    }

    .feature{
        min-height:0;
        display:grid;
        grid-template-columns:45px 1fr;
        gap:12px;
    }

    .feature-number{
        margin:2px 0 0;
    }
}

@media(max-width:820px){
    .login-page{
        display:block;
    }

    .login-visual{
        display:none;
    }

    .login-panel{
        min-height:100vh;
        padding:24px;
    }

    .login-card{
        padding:32px;
    }

    .mobile-brand{
        display:flex;
    }

    .login-footer{
        flex-wrap:wrap;
    }
}

@media(max-width:480px){
    .login-panel{
        padding:14px;
        justify-content:flex-start;
    }

    .login-card{
        margin-top:12px;
        padding:25px 20px;
        border-radius:15px;
    }

    .login-header h2{
        font-size:29px;
    }

    .login-footer{
        margin-bottom:12px;
    }
}

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}