*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,'DM Sans','Segoe UI',sans-serif;font-size:15px;background:#1a1625;color:#e8e6f0;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
.grain{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.03;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:200px}
main{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;position:relative;z-index:1}

.page{display:grid;grid-template-columns:420px 1fr;max-width:900px;width:100%;background:#16121f;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.left{padding:2.5rem 2rem}
.card-logo{margin-bottom:1.5rem}
.card-logo img{height:26px;width:auto}
.card-title{font-size:22px;font-weight:600;color:#fff;margin-bottom:4px}
.card-sub{font-size:14px;color:#7a738f;margin-bottom:1.5rem}
.right{padding:2.5rem 2rem 2.5rem 2.5rem;background:#120f1b;border-left:1px solid rgba(255,255,255,.06);display:flex;align-items:flex-start}
.right-inner{width:100%}
.right-tag{display:inline-block;font-size:11px;font-weight:500;background:rgba(135,106,255,.15);color:#a48fff;padding:4px 12px;border-radius:20px;margin-bottom:1.25rem;letter-spacing:.04em;text-transform:uppercase}
.right-heading{font-size:26px;font-weight:700;color:#fff;line-height:1.25;margin-bottom:.6rem}
.right-heading em{font-style:italic;color:#876aff}
.right-sub{font-size:14px;color:#5e5874;margin-bottom:2rem;line-height:1.7}
.features{display:flex;flex-direction:column;gap:18px;margin-bottom:2rem}
.feature{display:flex;gap:12px;align-items:flex-start}
.feat-icon{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.feat-icon.green{background:rgba(74,222,128,.12);color:#4ade80}
.feat-icon.purple{background:rgba(135,106,255,.15);color:#a48fff}
.feat-icon.blue{background:rgba(96,165,250,.12);color:#60a5fa}
.feat-icon.orange{background:rgba(251,191,36,.1);color:#fbbf24}
.feat-title{font-size:13px;font-weight:600;color:#e8e6f0;margin-bottom:2px}
.feat-desc{font-size:12px;color:#4a4460;line-height:1.6}
.right-stats{display:flex;gap:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.06)}
.right-stats>div{flex:1}
.stat-num{font-size:24px;font-weight:700;color:#fff}
.stat-num span{font-size:15px;color:#876aff}
.stat-label{font-size:12px;color:#4a4460;margin-top:2px}

.flow-wrap{width:100%;max-width:420px}
.flow-card{background:#16121f;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:2.5rem 2rem;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.flow-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem}
.flow-icon.purple{background:rgba(135,106,255,.15);color:#a48fff}
.flow-icon.green{background:rgba(74,222,128,.12);color:#4ade80}
.flow-icon.neverlose{background:rgba(42,65,125,.15);color:#3b5aaa}

.error-box{display:none;align-items:center;gap:8px;background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.25);color:#f87171;font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:1rem}
.error-box.show{display:flex}
.success-box{display:flex;align-items:center;gap:8px;background:rgba(74,222,128,.08);border:1px solid rgba(74,222,128,.22);color:#4ade80;font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:1rem}
.field{margin-bottom:14px}
label{display:block;font-size:12px;font-weight:500;color:#9d96b0;margin-bottom:6px;letter-spacing:.02em}
.field-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.field-row label{margin-bottom:0}
.forgot{font-size:12px;color:#876aff}
.forgot:hover{color:#a48fff}
.input-wrap{position:relative;display:flex;align-items:center}
.input-icon{position:absolute;left:11px;color:#4a4460;pointer-events:none;flex-shrink:0}
input[type=email],input[type=password],input[type=text]{width:100%;padding:10px 12px 10px 34px;font-size:14px;font-family:inherit;background:#13101e;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#e8e6f0;outline:none;transition:border-color .15s}
input::placeholder{color:#3e3852}
input:focus{border-color:#876aff;box-shadow:0 0 0 3px rgba(135,106,255,.15)}
input.invalid{border-color:#f87171}
input.valid{border-color:#4ade80}
.pw-eye{position:absolute;right:8px;background:none;border:none;cursor:pointer;color:#4a4460;padding:4px;display:flex;align-items:center;transition:color .15s}
.pw-eye:hover{color:#9d96b0}
.pw-strength{height:3px;background:rgba(255,255,255,.07);border-radius:2px;margin-top:6px}
.pw-strength-bar{height:100%;width:0;border-radius:2px;transition:width .25s,background .25s}
.field-hint{font-size:12px;color:#4a4460;margin-top:5px}
.field-hint.error{color:#f87171}
.btn-submit{width:100%;padding:11px;margin-top:6px;background:#876aff;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;position:relative;transition:background .15s,transform .1s}
.btn-submit:hover{background:#9b82ff}
.btn-submit:active{transform:scale(.98)}
.btn-submit.loading .btn-label{opacity:0}
.btn-submit.loading .spinner{display:block}
.spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite;position:absolute}
@keyframes spin{to{transform:rotate(360deg)}}
.divider{display:flex;align-items:center;gap:10px;margin:1.25rem 0;color:#3e3852;font-size:12px}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.07)}
.oauth-row{display:flex;gap:8px;margin-bottom:1.25rem}
.oauth-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;font-size:13px;font-family:inherit;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#c4bfd6;background:rgba(255,255,255,.03);cursor:pointer;transition:background .15s,border-color .15s}
.oauth-btn:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18)}
.tos-note{font-size:12px;color:#3e3852;text-align:center;margin-bottom:.75rem;line-height:1.6}
.tos-note a{color:#876aff}
.card-footer{font-size:13px;color:#5e5874;text-align:center;margin-top:1rem}
.card-footer a{color:#876aff}
.card-footer a:hover{color:#a48fff}
.trust{display:flex;gap:14px;justify-content:center;padding-top:1rem;border-top:1px solid rgba(255,255,255,.06);margin-top:1.5rem}
.trust-item{display:flex;align-items:center;gap:5px;font-size:11px;color:#3e3852}
.check-list{display:flex;flex-direction:column;gap:18px;margin-bottom:2rem}
.check-item{display:flex;gap:12px;align-items:flex-start}
.check-dot{width:24px;height:24px;border-radius:50%;background:rgba(135,106,255,.15);color:#876aff;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.check-title{font-size:13px;font-weight:600;color:#e8e6f0;margin-bottom:2px}
.check-desc{font-size:12px;color:#4a4460;line-height:1.6}
.testimonial{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:16px}
.stars{color:#fbbf24;font-size:13px;margin-bottom:8px;letter-spacing:2px}
.testimonial-text{font-size:13px;color:#7a738f;line-height:1.7;margin-bottom:12px}
.testimonial-author{display:flex;align-items:center;gap:10px}
.testimonial-avatar{width:30px;height:30px;border-radius:50%;background:#876aff;color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.testimonial-name{font-size:13px;font-weight:600;color:#e8e6f0}
.testimonial-handle{font-size:11px;color:#4a4460;margin-top:1px}

@media(max-width:768px){
  main{padding:1rem;align-items:flex-start}
  .page{grid-template-columns:1fr;border-radius:12px}
  .right{display:none}
  .left{padding:1.75rem 1.25rem}
  .card-title{font-size:20px}
  .oauth-row{flex-direction:column}
  .flow-card{padding:1.75rem 1.25rem}
}
@media(max-width:400px){
  .left{padding:1.25rem 1rem}
  .trust{gap:8px;flex-wrap:wrap;justify-content:center}
  .flow-card{padding:1.25rem 1rem}
}
