:root{
    --ink:#eaf7ff;
    --ink-soft:rgba(234,247,255,0.82);
    --panel:rgba(14, 38, 58, 0.76);
    --panel-strong:rgba(15, 44, 67, 0.94);
    --line:rgba(173, 222, 255, 0.18);
    --brand:#7cc8ff;
    --brand-deep:#245173;
    --accent:#dff4ff;
    --danger:#cf7b7b;
    --success:#7bc4a1;
    --shadow:0 28px 80px rgba(4, 17, 29, 0.42);
}
body{
    font-family:"Trebuchet MS","Segoe UI",sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(124,200,255,0.24), transparent 22%),
        radial-gradient(circle at 88% 16%, rgba(70,129,171,0.28), transparent 24%),
        radial-gradient(circle at 50% 92%, rgba(223,244,255,0.18), transparent 30%),
        linear-gradient(135deg,#06131f 0%,#0d2335 36%,#17324d 100%);
    min-height:100vh;
    color:var(--ink);
    overflow-x:hidden;
}

.login-overlay{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px 18px;
    position:relative;
    overflow:hidden;
}

.login-overlay::before,
.login-overlay::after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter:blur(10px);
    pointer-events:none;
}
.login-overlay::before{
    width:320px;
    height:320px;
    background:radial-gradient(circle, rgba(124,200,255,0.24), transparent 68%);
    top:-40px;
    left:-40px;
}
.login-overlay::after{
    width:360px;
    height:360px;
    background:radial-gradient(circle, rgba(24,86,134,0.28), transparent 70%);
    right:-60px;
    bottom:-40px;
}

.login-shell{
    width:min(1120px, 100%);
    display:grid;
    grid-template-columns:minmax(320px, 1.08fr) minmax(320px, .92fr);
    border-radius:34px;
    overflow:hidden;
    border:1px solid rgba(173, 222, 255, 0.14);
    background:linear-gradient(135deg, rgba(8,24,38,0.56), rgba(10,31,48,0.3));
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
    position:relative;
    z-index:2;
}

.hero-panel{
    padding:46px 40px;
    background:
        radial-gradient(circle at top right, rgba(124,200,255,0.18), transparent 24%),
        linear-gradient(160deg, rgba(19,52,77,0.96), rgba(11,32,49,0.92));
    position:relative;
    overflow:hidden;
}
.hero-panel::after{
    content:"";
    position:absolute;
    width:280px;
    height:280px;
    border-radius:34px;
    right:-110px;
    bottom:-120px;
    background:linear-gradient(135deg, rgba(124,200,255,0.14), rgba(255,255,255,0.02));
    transform:rotate(24deg);
}
.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 14px;
    border-radius:999px;
    background:rgba(223,244,255,0.08);
    border:1px solid rgba(223,244,255,0.12);
    color:var(--accent);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.1em;
    font-style:italic;
}
.hero-logo{
    width:42px;
    height:42px;
    border-radius:14px;
    object-fit:contain;
    background:rgba(255,255,255,0.08);
    padding:6px;
    border:1px solid rgba(223,244,255,0.12);
}
.hero-title{
    margin:18px 0 12px;
    font-size:clamp(34px, 5vw, 64px);
    line-height:.94;
    max-width:8ch;
}
.hero-text{
    color:var(--ink-soft);
    line-height:1.75;
    max-width:54ch;
    margin-bottom:28px;
}
.hero-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
    gap:14px;
}
.hero-card{
    padding:16px 18px;
    border-radius:22px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(173,222,255,0.12);
}
.hero-card strong{
    display:block;
    font-size:26px;
    margin-bottom:6px;
}
.hero-card span{
    color:var(--ink-soft);
    font-size:13px;
    font-style:italic;
}

.login-box{
    padding:42px 34px;
    background:linear-gradient(180deg, rgba(247,252,255,0.96), rgba(228,242,252,0.94));
    color:#17324d;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
}
.login-box::before{
    content:"";
    position:absolute;
    inset:20px;
    border-radius:26px;
    border:1px solid rgba(36,81,115,0.08);
    pointer-events:none;
}
.form-group{ margin-bottom:16px; }
.password-field{
    position:relative;
}
.password-field input{
    padding-right:92px;
}
.password-toggle{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    width:auto;
    min-width:72px;
    padding:10px 14px;
    border-radius:12px;
    background:linear-gradient(135deg,#dff4ff,#c8e7fb);
    color:#17324d;
    letter-spacing:0;
    text-transform:none;
    box-shadow:none;
    font-size:13px;
}
.password-toggle:hover{
    transform:translateY(-50%);
}
.login-box h2{
    margin:0 0 10px;
    font-size:30px;
    line-height:1.05;
    color:#17324d;
}
.login-box p{
    color:#4d6984;
    line-height:1.7;
}
.form-label{
    display:block;
    text-align:left;
    margin-bottom:8px;
    color:#245173;
    font-weight:800;
    font-size:13px;
    letter-spacing:.04em;
    text-transform:uppercase;
}
input{
    width:100%;
    padding:15px 16px;
    border-radius:18px;
    border:1px solid rgba(77,136,179,0.18);
    outline:none;
    background:#ffffff;
    color:#17324d;
    box-shadow:inset 0 0 0 1px rgba(223,244,255,0.64), 0 10px 26px rgba(36,81,115,0.06);
}
input::placeholder{
    color:#6d879f;
}
input:focus{
    border-color:rgba(77,136,179,0.42);
    box-shadow:0 0 0 4px rgba(124,200,255,0.18), inset 0 0 0 1px rgba(223,244,255,0.64);
}

button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#5ca9db,#245173);
    color:#fff;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:0 18px 30px rgba(36,81,115,0.2);
}
button:hover{transform:translateY(-1px);}

.error{
    background:rgba(207,123,123,0.14);
    color:#8f3030;
    padding:12px 14px;
    border-radius:14px;
    margin-bottom:15px;
    font-size:13px;
    border:1px solid rgba(207,123,123,0.22);
}
.spinner{
    width:55px;
    height:55px;
    border-radius:50%;
    border:5px solid transparent;
    border-top:5px solid #38bdf8;
    border-right:5px solid #2563eb;
    animation:spin 0.7s linear infinite;
    margin:0 auto 20px;
    box-shadow:0 0 20px rgba(56,189,248,0.6);
}

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

.success{
    background:linear-gradient(180deg, rgba(20,55,79,0.96), rgba(13,39,59,0.96));
    color:#f5fbff;
    padding:20px;
    border-radius:22px;
    font-size:14px;
    border:1px solid rgba(124,200,255,0.14);
    box-shadow:var(--shadow);
}
.login-footer{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid rgba(77,136,179,0.12);
    color:#597691;
    font-size:13px;
    line-height:1.7;
}
@media(max-width:900px){
    .login-shell{
        grid-template-columns:1fr;
    }
    .hero-panel{
        padding:32px 24px;
    }
    .login-box{
        padding:30px 22px;
    }
}
@media(max-width:560px){
    .login-overlay{
        padding:12px;
    }
    .hero-grid{
        grid-template-columns:1fr;
    }
    .hero-title{
        max-width:none;
    }
}



