:root{
    --to-bg:#050b16;
    --to-panel:#0d1628;
    --to-panel-2:#111d33;
    --to-line:rgba(255,255,255,.13);
    --to-blue:#0aa8ff;
    --to-blue-2:#255cff;
    --to-cyan:#00d4ff;
    --to-white:#ffffff;
    --to-muted:#9fb0c8;
    --to-text:#eaf4ff;
}

*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{
    font-family:"Segoe UI", Arial, Helvetica, sans-serif;
    color:var(--to-text);
    background:
        radial-gradient(circle at 15% 12%, rgba(37,92,255,.32), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(0,212,255,.18), transparent 32%),
        linear-gradient(135deg,#030712 0%,#071326 48%,#020817 100%);
    overflow-x:hidden;
}
body:before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size:46px 46px;
    mask-image:radial-gradient(circle at center,#000 0 48%,transparent 82%);
}

.to-login-page{
    min-height:100vh;
    width:min(1440px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:.88fr 1.12fr;
    gap:48px;
    position:relative;
    z-index:1;
}

.to-brand-panel,
.to-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:36px;
}

.to-form-panel{
    justify-content:flex-start;
}

.to-brand-card{
    width:min(610px,100%);
    min-height:560px;
    border:1px solid var(--to-line);
    border-radius:34px;
    padding:38px;
    background:
        linear-gradient(145deg, rgba(17,29,51,.88), rgba(5,11,22,.72)),
        radial-gradient(circle at 50% 30%, rgba(10,168,255,.16), transparent 42%);
    box-shadow:0 34px 100px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
    position:relative;
    overflow:hidden;
}
.to-brand-card:after{
    content:"";
    position:absolute;
    right:-140px;
    bottom:-130px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(10,168,255,.44), transparent 68%);
    filter:blur(2px);
}
.to-status-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:9px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:#cfe4ff;
    font-size:13px;
    font-weight:800;
    letter-spacing:.5px;
    text-transform:uppercase;
}
.to-status-pill span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 18px #22c55e;
}
.to-main-logo{
    display:block;
    width:min(410px,100%);
    margin:54px auto 34px;
    border-radius:22px;
    box-shadow:0 28px 80px rgba(0,0,0,.38);
}
.to-brand-card h1{
    font-size:36px;
    line-height:1.08;
    margin:0 0 14px;
    letter-spacing:-1px;
    color:#fff;
    text-shadow:0 10px 30px rgba(0,0,0,.35);
}
.to-brand-card p{
    color:#b8c8df;
    font-size:16px;
    line-height:1.7;
    max-width:600px;
    margin:0 0 28px;
}
.to-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    position:relative;
    z-index:1;
}
.to-features div{
    padding:15px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:18px;
    background:rgba(255,255,255,.055);
}
.to-features strong{display:block;color:#fff;font-size:14px;margin-bottom:4px}
.to-features small{display:block;color:#8fa3c0;font-weight:700}

.to-login-card{
    width:min(520px,100%);
    border:1px solid rgba(10,168,255,.28);
    border-radius:34px;
    padding:42px;
    background:linear-gradient(145deg, rgba(17,29,51,.96), rgba(7,14,27,.94));
    box-shadow:0 38px 105px rgba(0,0,0,.58), 0 0 0 1px rgba(10,168,255,.08), inset 0 1px 0 rgba(255,255,255,.10);
}

.to-back-portal{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    margin-bottom:22px;
    border-radius:14px;
    text-decoration:none;
    color:#8fdcff;
    font-weight:800;
    font-size:13px;
    border:1px solid rgba(10,168,255,.25);
    background:rgba(10,168,255,.08);
    transition:all .25s ease;
}

.to-back-portal:hover{
    color:#ffffff;
    text-decoration:none;
    background:rgba(10,168,255,.18);
    border-color:rgba(10,168,255,.50);
    transform:translateX(-2px);
    box-shadow:0 10px 25px rgba(10,168,255,.20);
}

.to-back-portal .glyphicon{
    font-size:12px;
}


.to-card-header{text-align:center;margin-bottom:26px}
.to-card-header img{
    width:255px;
    max-width:100%;
    border-radius:14px;
    margin-bottom:18px;
    box-shadow:0 16px 40px rgba(0,0,0,.22);
}
.to-card-header span{
    display:inline-flex;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(10,168,255,.13);
    border:1px solid rgba(10,168,255,.28);
    color:#78d8ff;
    text-transform:uppercase;
    letter-spacing:.6px;
    font-weight:900;
    font-size:12px;
}
.to-card-header h2{
    margin:18px 0 8px;
    color:#fff;
    font-size:34px;
    font-weight:900;
}
.to-card-header p{margin:0;color:#9fb0c8;line-height:1.5}

.alert{
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:none;
}
.form-signin label{
    display:block;
    color:#d9e7ff;
    margin:0 0 8px;
    font-weight:800;
}
.to-input-wrap{position:relative;margin-bottom:17px}
.to-input-wrap .glyphicon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#41c7ff;
    z-index:2;
}
.form-signin .form-control{
    height:56px;
    padding:12px 15px 12px 46px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.13);
    background:rgba(3,9,21,.58);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    transition:all .2s ease;
}
.form-signin .form-control::placeholder{color:#71829c}
.form-signin .form-control:focus{
    border-color:rgba(10,168,255,.75);
    outline:0;
    box-shadow:0 0 0 4px rgba(10,168,255,.14), inset 0 1px 0 rgba(255,255,255,.05);
}
.btn.btn-signin{
    height:56px;
    margin-top:8px;
    border:0;
    border-radius:16px;
    background:linear-gradient(135deg,var(--to-blue),var(--to-blue-2));
    color:#fff;
    font-weight:900;
    letter-spacing:.2px;
    box-shadow:0 18px 38px rgba(10,168,255,.26);
    transition:all .22s ease;
    cursor:pointer;
}
.btn.btn-signin:hover,
.btn.btn-signin:focus{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 24px 48px rgba(10,168,255,.35);
}
.btn.btn-signin .glyphicon{margin-left:8px;font-size:12px}
.to-footer-note{
    margin-top:24px;
    text-align:center;
    color:#7588a3;
    font-size:12px;
    font-weight:800;
    letter-spacing:.5px;
    text-transform:uppercase;
}

@media(max-width:1180px){
    .to-login-page{grid-template-columns:1fr;gap:20px}
    .to-brand-panel{padding:26px 20px 0}
    .to-form-panel{padding:18px 20px 34px;justify-content:center}
    .to-brand-card{min-height:auto;padding:28px;border-radius:26px;width:min(760px,100%)}
    .to-main-logo{margin:28px auto 24px;width:min(380px,100%)}
    .to-brand-card h1{font-size:30px}
    .to-brand-card p{font-size:15px}
    .to-features{grid-template-columns:1fr}
    .to-login-card{border-radius:28px;padding:30px;width:min(520px,100%)}
}

@media(max-width:560px){
    .to-brand-card{display:none}
    .to-form-panel{min-height:100vh;padding:22px 16px;align-items:center}
    .to-login-card{padding:24px;border-radius:24px}
    .to-card-header img{width:220px}
    .to-card-header h2{font-size:30px}
}
