*{box-sizing:border-box}

html,body{
    margin:0;
    width:100%;
    height:100%;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
    color:#fff;
}

body{
    min-height:100vh;
    overflow:hidden;
    background:#030303;
}

body:before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.28),rgba(0,0,0,.78)),
        radial-gradient(circle at 24% 42%,rgba(245,200,75,.26),transparent 28%),
        radial-gradient(circle at 75% 60%,rgba(245,200,75,.13),transparent 24%),
        linear-gradient(135deg,#030303,#090806 55%,#000);
    z-index:-3;
}

body:after{
    content:"";
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:72px 72px;
    mask-image:radial-gradient(circle at center,black,transparent 75%);
    z-index:-2;
}

.auth-page{
    height:100vh;
    padding:28px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-shell{
    width:min(1180px,100%);
    height:min(760px,calc(100vh - 56px));
    display:grid;
    grid-template-columns:1.05fr .95fr;
    border:1px solid rgba(255,255,255,.10);
    border-radius:34px;
    overflow:hidden;
    background:rgba(255,255,255,.035);
    backdrop-filter:blur(28px);
    box-shadow:0 50px 160px rgba(0,0,0,.75);
}

.auth-left{
    position:relative;
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:
        radial-gradient(circle at 38% 42%,rgba(245,200,75,.24),transparent 28%),
        linear-gradient(135deg,rgba(245,200,75,.08),rgba(0,0,0,.30));
}

.auth-left:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-120 620 C150 430 300 730 545 555 C780 385 950 445 1320 250' fill='none' stroke='%23f5c84b' stroke-opacity='.36' stroke-width='5' filter='url(%23b)'/%3E%3Cpath d='M-80 700 C220 520 365 790 610 610 C825 455 990 530 1290 370' fill='none' stroke='%23f5c84b' stroke-opacity='.18' stroke-width='2'/%3E%3Cellipse cx='430' cy='520' rx='540' ry='210' fill='none' stroke='%23f5c84b' stroke-opacity='.20' stroke-width='2'/%3E%3Cg fill='%23f5c84b'%3E%3Ccircle cx='180' cy='220' r='2' opacity='.7'/%3E%3Ccircle cx='310' cy='390' r='1.5' opacity='.5'/%3E%3Ccircle cx='520' cy='270' r='2' opacity='.55'/%3E%3Ccircle cx='760' cy='450' r='1.5' opacity='.5'/%3E%3Ccircle cx='900' cy='240' r='2' opacity='.6'/%3E%3C/g%3E%3C/svg%3E");
    background-size:cover;
    background-position:center;
    opacity:.9;
}

.auth-left > *{
    position:relative;
    z-index:2;
}

.top-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.top-pill{
    height:40px;
    padding:0 15px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(0,0,0,.35);
    font-size:14px;
    font-weight:800;
}

.top-pill b{
    color:#f5c84b;
}

.hero-logo{
    display:flex;
    align-items:center;
    gap:16px;
}

.logo-box{
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#ffe16a,#c89117);
    color:#050505;
    font-size:25px;
    font-weight:950;
    letter-spacing:-.07em;
    box-shadow:0 20px 55px rgba(245,200,75,.30);
}

.brand-name{
    color:#f5c84b;
    font-size:25px;
    font-weight:950;
    letter-spacing:.16em;
}

.tagline{
    margin-top:5px;
    color:#c6c9d0;
    font-size:11px;
    font-weight:800;
    letter-spacing:.15em;
}

.hero-copy h2{
    max-width:520px;
    margin:0;
    font-size:54px;
    line-height:.98;
    letter-spacing:-.06em;
}

.hero-copy h2 span{
    color:#f5c84b;
}

.hero-copy p{
    max-width:460px;
    margin:22px 0 0;
    color:#b9bec7;
    font-size:18px;
    line-height:1.6;
}

.feature-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    max-width:470px;
}

.feature{
    padding:14px 15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    background:rgba(0,0,0,.24);
    color:#e9eaee;
    font-weight:800;
}

.feature b{
    color:#f5c84b;
    margin-right:8px;
}

.auth-right{
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:rgba(0,0,0,.48);
}

.form-card{
    width:100%;
    max-width:430px;
    margin:0 auto;
}

.form-card h1{
    margin:0 0 8px;
    font-size:38px;
    letter-spacing:-.055em;
}

.subtitle{
    margin:0 0 26px;
    color:#aeb3bd;
    font-size:15px;
}

.social-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:18px;
}

.social-btn{
    height:48px;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.12);
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:14px;
    font-weight:900;
}

.social-btn.google{
    background:#fff;
    color:#111;
}

.social-btn.apple{
    background:#030303;
    color:#fff;
}

.social-btn svg{
    width:20px;
    height:20px;
}

.divider{
    display:flex;
    align-items:center;
    gap:14px;
    color:#747985;
    font-size:13px;
    margin-bottom:16px;
}

.divider:before,.divider:after{
    content:"";
    flex:1;
    height:1px;
    background:rgba(255,255,255,.10);
}

.form-field{
    position:relative;
    margin-bottom:11px;
}

.form-field span{
    position:absolute;
    left:16px;
    top:14px;
    color:#f5c84b;
    font-size:17px;
}

.form-field input{
    width:100%;
    height:48px;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.045);
    color:#fff;
    outline:none;
    padding:0 46px;
    font-size:14px;
}

.form-field input:focus{
    border-color:rgba(245,200,75,.78);
    box-shadow:0 0 0 4px rgba(245,200,75,.10);
}

.eye{
    position:absolute;
    right:16px;
    top:14px;
    color:#777;
}

.hint{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    color:#9fa3ad;
    font-size:12px;
    margin:6px 0 12px;
}

.bars{
    display:flex;
    gap:5px;
}

.bars i{
    display:block;
    width:30px;
    height:5px;
    border-radius:99px;
    background:rgba(255,255,255,.14);
}

.bars i:nth-child(1),.bars i:nth-child(2){
    background:#f5c84b;
}

.submit-btn{
    width:100%;
    height:52px;
    border:0;
    border-radius:16px;
    cursor:pointer;
    background:linear-gradient(135deg,#f5c84b,#c89117);
    color:#070707;
    font-size:17px;
    font-weight:950;
    box-shadow:0 18px 48px rgba(245,200,75,.24);
}

.auth-link{
    margin:17px 0 22px;
    color:#9fa3ad;
    font-size:14px;
    text-align:center;
}

.auth-link a{
    color:#f5c84b;
    font-weight:950;
    text-decoration:none;
}

.bottom-switch{
    border-top:1px solid rgba(255,255,255,.08);
    display:grid;
    grid-template-columns:1fr 1px 1fr;
    gap:14px;
    padding-top:17px;
    align-items:center;
}

.bottom-switch a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
}

.bottom-switch b{
    color:#f5c84b;
    font-size:21px;
}

.switch-line{
    height:28px;
    background:rgba(255,255,255,.10);
}

footer{
    margin-top:14px;
    text-align:center;
    color:#6f7480;
    font-size:11px;
}

.error-box{
    margin-bottom:12px;
    padding:11px 13px;
    border-radius:14px;
    background:rgba(255,70,70,.09);
    border:1px solid rgba(255,90,90,.32);
}

.error-box p{
    margin:3px 0;
    color:#ffb5b5;
    font-size:13px;
}

@media(max-width:900px){
    body{overflow:auto}
    .auth-page{
        height:auto;
        min-height:100vh;
        padding:18px;
    }
    .auth-shell{
        height:auto;
        grid-template-columns:1fr;
    }
    .auth-left{
        min-height:420px;
    }
    .auth-right{
        padding:32px 22px;
    }
    .hero-copy h2{
        font-size:38px;
    }
    .feature-grid{
        grid-template-columns:1fr;
    }
}

/* Typography fix v21 */
html,body{
    font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.brand-name{
    font-weight:800;
    letter-spacing:.22em;
}

.tagline{
    font-weight:700;
    letter-spacing:.18em;
}

.hero-copy h2{
    font-weight:800;
    letter-spacing:-.045em;
}

.form-card h1{
    font-weight:800;
    letter-spacing:-.04em;
}

.social-btn,
.submit-btn,
.feature,
.bottom-switch a,
.top-pill{
    font-weight:700;
}

.form-field input{
    font-weight:500;
}

.subtitle,
.hero-copy p,
.auth-link{
    font-weight:500;
}

/* auth interactions v30 */
.lang-btn{
    border:none;
    cursor:pointer;
}

.account-switch{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:0 0 14px;
}

.account-option{
    height:42px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.045);
    color:#aeb3bd;
    font-weight:800;
    cursor:pointer;
}

.account-option.active{
    background:linear-gradient(135deg,rgba(245,200,75,.22),rgba(245,200,75,.08));
    border-color:rgba(245,200,75,.65);
    color:#f5c84b;
    box-shadow:0 0 0 4px rgba(245,200,75,.08);
}

.g-logo{
    width:22px;
    height:22px;
    border-radius:50%;
    display:inline-grid;
    place-items:center;
    font-weight:900;
    color:#4285f4;
    background:
        conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);
    -webkit-background-clip:text;
    background-clip:text;
}

.a-logo{
    font-size:22px;
    line-height:1;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.68);
    backdrop-filter:blur(14px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:100;
}

.modal.open{
    display:flex;
}

.modal-card{
    position:relative;
    width:min(440px,calc(100vw - 36px));
    padding:28px;
    border-radius:24px;
    border:1px solid rgba(245,200,75,.26);
    background:linear-gradient(180deg,rgba(28,28,26,.96),rgba(5,5,5,.98));
    box-shadow:0 40px 140px rgba(0,0,0,.75);
}

.modal-card h2{
    margin:0 0 10px;
    font-size:28px;
}

.modal-card p{
    color:#b9bec7;
    line-height:1.6;
}

.modal-card a{
    color:#f5c84b;
    font-weight:800;
    text-decoration:none;
}

.modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.05);
    color:#fff;
    cursor:pointer;
}

.auth-right .bottom-switch{
    display:none;
}
