*{box-sizing:border-box;margin:0;padding:0}
input,textarea,select,button{font-family:inherit;font-size:inherit;-webkit-appearance:none;appearance:none}
:root{
  --bg:#fffaf6;
  --card:#ffffff;
  --text:#15110f;
  --muted:#766b65;
  --subtle:#a89890;
  --border:#f1d8ca;
  --accent:#ff6b00;
  --accent-soft:#fff0e7;
  --accent-dark:#d84900;
  --shadow:0 24px 80px rgba(255,90,0,.10);
  --fh:'DM Sans',sans-serif;
  --fb:'DM Sans',sans-serif;
  --ui:"Geist","Inter",'DM Sans',ui-sans-serif,system-ui,sans-serif;
}
[data-theme="dark"]{
  --bg:#140e0a;
  --card:#1f1712;
  --text:#fff8f2;
  --muted:#c2aea1;
  --subtle:#8d7c70;
  --border:#3d2718;
  --accent:#ff6b00;
  --accent-soft:#3a1f12;
  --accent-dark:#ff7a2f;
  --shadow:0 24px 90px rgba(0,0,0,.45);
}
*:focus{outline:none}
*:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:10px}
html,body{min-height:100%;overflow-x:hidden}
body{
  min-height:100vh;
  color:var(--text);
  font-family:var(--fb);
  background:var(--bg);
}
a{color:inherit}
.auth-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 30% 20%,rgba(255,90,0,.10),transparent 34%),
    radial-gradient(circle at 70% 40%,rgba(255,132,48,.08),transparent 30%),
    var(--bg);
  color:var(--text);
}
[data-theme="dark"] .auth-page{
  background:
    radial-gradient(circle at 40% 20%,rgba(255,107,0,.20),transparent 34%),
    radial-gradient(circle at 70% 50%,rgba(255,107,0,.10),transparent 28%),
    #140e0a;
}

/* Header */
.auth-header{
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--bg) 84%,transparent);
  backdrop-filter:blur(16px);
  position:sticky;
  top:0;
  z-index:20;
}
.auth-logo{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--text);
  text-decoration:none;
  font-size:22px;
  font-weight:900;
  letter-spacing:.16em;
}
.auth-logo span{
  width:6px;
  height:6px;
  border-radius:1px;
  background:var(--accent);
  display:inline-block;
  transform:translateY(5px);
}
.theme-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1.5px solid var(--border);
  background:color-mix(in srgb,var(--card) 72%,transparent);
  color:var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:color .18s,border-color .18s,background .18s,transform .18s;
}
.theme-btn:hover{
  color:var(--accent);
  border-color:var(--accent);
  transform:translateY(-1px);
}
.theme-btn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2}

/* Layout */
.auth-container{
  max-width:1280px;
  margin:0 auto;
  padding:48px 32px 24px;
}
.auth-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 520px;
  gap:72px;
  align-items:center;
}
.auth-copy{position:relative;min-width:0}
.auth-copy:before{
  content:"";
  position:absolute;
  right:12%;
  top:44%;
  width:70px;
  height:70px;
  border-radius:50%;
  background:rgba(255,90,0,.10);
  z-index:-1;
}
.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent-soft) 84%,#fff);
  border:1px solid color-mix(in srgb,var(--border) 78%,var(--accent));
  color:var(--accent);
  font-family:var(--ui);
  font-size:13px;
  font-weight:800;
  letter-spacing:-.01em;
  box-shadow:0 12px 32px rgba(255,90,0,.10);
}
[data-theme="dark"] .auth-kicker{
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--border) 70%,var(--accent));
  box-shadow:none;
}
.auth-kicker span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 20px rgba(255,90,0,.4);
}
.hero-title{
  margin:22px 0 18px;
  font-size:clamp(48px,6vw,76px);
  line-height:.95;
  font-weight:900;
  letter-spacing:-.06em;
}
.hero-title span{color:var(--accent)}
.hero-sub{
  max-width:500px;
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
  font-weight:600;
}
.benefit-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:28px;
}
.benefit-list li{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:15px;
  font-weight:900;
}
.benefit-list span{
  position:relative;
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid var(--accent);
  color:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  line-height:1;
  flex-shrink:0;
}
.benefit-list span:before{
  content:"";
  width:8px;
  height:4px;
  border-left:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  transform:rotate(-45deg) translate(1px,-1px);
}

/* Auth card */
.auth-card{
  background:color-mix(in srgb,var(--card) 92%,transparent);
  border:1px solid var(--border);
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}
.auth-card-head{
  text-align:center;
  margin-bottom:24px;
}
.auth-card-head h2{
  margin:0;
  color:var(--text);
  font-family:var(--ui);
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.025em;
}
.auth-card-head p{
  max-width:300px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
  font-weight:600;
}
.forms-wrap{position:relative;min-height:430px}
.form{
  display:flex;
  flex-direction:column;
  gap:16px;
  position:absolute;
  top:0;
  left:0;
  width:100%;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .32s ease,transform .32s ease;
}
.form.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.form.leaving{
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  position:absolute;
}
.auth-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:2px;
}
.auth-title{
  margin:0;
  color:var(--text);
  font-size:20px;
  font-weight:900;
  letter-spacing:-.02em;
}
.auth-sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-align:right;
}
.auth-sub a,
.auth-terms a,
.forgot-link{
  color:var(--accent);
  font-weight:900;
  text-decoration:none;
}
.auth-sub a:hover,
.auth-terms a:hover,
.forgot-link:hover{color:var(--accent-dark)}
.field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.field label{
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.field-input-wrap{position:relative}
.field input{
  width:100%;
  height:52px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  padding:0 16px;
  font-size:15px;
  outline:0;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.field input::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent)}
.field input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(255,90,0,.10);
  background:color-mix(in srgb,var(--card) 72%,transparent);
}
[data-theme="dark"] .field input:focus{
  background:#1f1712;
  border-color:#ff6b00;
  box-shadow:0 0 0 3px rgba(255,107,0,.16);
}
.field input[type="password"],
.field input.has-toggle{padding-right:46px}
.field input.error{border-color:#DC2626}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active{
  -webkit-text-fill-color:var(--text)!important;
  -webkit-box-shadow:0 0 0 1000px var(--card) inset!important;
  caret-color:var(--text)!important;
  transition:background-color 5000s ease-in-out 0s;
}
.pwd-toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:0;
  cursor:pointer;
  color:var(--muted);
  padding:4px;
  display:flex;
  align-items:center;
  transition:color .15s;
}
.pwd-toggle:hover{color:var(--accent)}
.pwd-toggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.field-err{
  display:none;
  color:#DC2626;
  font-size:12px;
  font-weight:800;
}
.field-err.show{display:block}
.forgot-remember-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.remember-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.remember-label input[type="checkbox"]{
  -webkit-appearance:checkbox;
  appearance:checkbox;
  width:16px;
  height:16px;
  accent-color:var(--accent);
  cursor:pointer;
}
.forgot-link{font-size:13px}
.submit-btn,
.primary-btn{
  width:100%;
  height:54px;
  border-radius:12px;
  border:0;
  background:linear-gradient(180deg,#ff6b00,#f05200);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(255,90,0,.22);
  transition:transform .18s,box-shadow .18s,filter .18s;
}
.submit-btn:hover,
.primary-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 42px rgba(255,90,0,.30);
}
.submit-btn:disabled{
  opacity:.48;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.divider{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  margin:2px 0;
}
.divider:before,
.divider:after{
  content:"";
  flex:1;
  height:1px;
  background:var(--border);
}
.social-btn{
  width:100%;
  min-height:48px;
  border-radius:12px;
  border:1px solid var(--border);
  background:color-mix(in srgb,var(--card) 68%,transparent);
  color:var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  font-weight:900;
  transition:border-color .18s,background .18s,color .18s,transform .18s;
}
.social-btn:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
  transform:translateY(-1px);
}
.social-btn svg{
  width:20px;
  height:20px;
  flex-shrink:0;
}
.pwd-reqs{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 10px;
  margin:2px 0 0;
}
.pwd-reqs li{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--subtle);
  font-size:11.5px;
  font-weight:800;
  transition:color .18s;
}
.pwd-reqs .req-check{
  width:15px;
  height:15px;
  flex-shrink:0;
  stroke:var(--subtle);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.pwd-reqs li.ok{color:#16a34a}
.pwd-reqs li.ok .req-check{stroke:#16a34a}
.auth-terms{
  margin-top:20px;
  text-align:center;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6;
  font-weight:700;
}

/* Footer */
.site-footer{
  padding:26px 24px 34px;
}
.site-footer-inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.site-footer-copy{white-space:nowrap}
.site-footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.site-footer a{
  color:var(--muted);
  text-decoration:none;
}
.site-footer a:hover{color:var(--accent)}

[data-theme="dark"] .auth-card{
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.04);
}

@media (max-width: 1040px){
  .auth-hero{
    grid-template-columns:minmax(0,1fr) 480px;
    gap:40px;
  }
}
@media (max-width: 900px){
  .auth-header{padding:0 20px}
  .auth-container{padding:34px 20px 22px}
  .auth-hero{
    grid-template-columns:1fr;
    gap:34px;
  }
  .auth-card{max-width:560px;width:100%;margin:0 auto}
}
@media (max-width: 640px){
  .auth-header{height:60px}
  .auth-logo{font-size:18px}
  .theme-btn{width:38px;height:38px}
  .auth-container{padding:28px 16px 18px}
  .hero-title{font-size:46px}
  .hero-sub{font-size:16px}
  .benefit-list li{font-size:14px}
  .auth-card{padding:26px 18px;border-radius:24px}
  .auth-card-head h2{font-size:24px}
  .auth-head{display:block}
  .auth-sub{text-align:left;margin-top:4px}
  .forms-wrap{min-height:520px}
  .pwd-reqs{grid-template-columns:1fr}
  .forgot-remember-row{align-items:flex-start;flex-direction:column}
  .site-footer-inner{flex-direction:column;gap:12px;text-align:center}
  .site-footer-links{justify-content:center}
}
