:root{
  --green-dark:#1C3832;
  --green:#264540;
  --green-mid:#2F5A50;
  --green-light:#E8F1EC;
  --cream:#F7F0DE;
  --cream-2:#FFF9EA;
  --gold:#C9A646;
  --gold-soft:#E8DCA6;
  --text:#1F2926;
  --text-muted:#64736F;
  --line:rgba(28,56,50,.14);
  --danger:#B94A48;
  --success:#2D7A4F;
  --info:#2F5A50;
}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{
  font-family:'Nunito',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(201,166,70,.18), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(255,249,234,.12), transparent 28%),
    linear-gradient(135deg, #102A25 0%, var(--green-dark) 48%, #274B43 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem 1rem;
}
a{color:inherit}
.back-site-link{
  position:fixed;
  top:18px;
  left:18px;
  z-index:10;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.55rem .8rem;
  border:1px solid rgba(255,249,234,.22);
  border-radius:999px;
  color:rgba(255,249,234,.88);
  background:rgba(9,24,21,.26);
  backdrop-filter:blur(8px);
  text-decoration:none;
  font-size:.88rem;
  font-weight:700;
}
.back-site-link:hover{background:rgba(255,249,234,.12);color:#fff}
.wrap{
  width:min(100%,460px);
  margin:0 auto;
  padding-top:1rem;
}
.logo-wrap{animation:dfFadeIn .35s ease-out both}
.logo-wrap img{
  filter:drop-shadow(0 12px 28px rgba(0,0,0,.18));
}
.card{
  width:100%;
  background:rgba(255,249,234,.97);
  border:1px solid rgba(232,220,166,.62);
  border-radius:24px;
  box-shadow:0 26px 70px rgba(0,0,0,.26);
  padding:1.75rem;
  animation:dfLift .28s ease-out both;
}
h1{
  margin:0 0 .5rem;
  color:var(--green-dark);
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(1.7rem,4vw,2.25rem);
  line-height:1.08;
  letter-spacing:-.03em;
}
p,.sub{
  margin:.15rem 0 1.2rem;
  color:var(--text-muted);
  font-size:1rem;
  line-height:1.5;
}
label{
  display:block;
  margin:.9rem 0 .35rem;
  color:var(--green-dark);
  font-size:.9rem;
  font-weight:800;
}
input,select,textarea{
  width:100%;
  min-height:46px;
  border:1px solid rgba(28,56,50,.22);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  padding:.72rem .86rem;
  font:inherit;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(201,166,70,.18);
}
input::placeholder{color:#98A39F}
.btn,.btn-ghost,button{
  font:inherit;
}
.btn{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:999px;
  margin-top:1.15rem;
  padding:.82rem 1.05rem;
  background:linear-gradient(135deg,#D7B65A,#B8902F);
  color:#1F241F;
  cursor:pointer;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.btn-ghost{
  width:100%;
  min-height:46px;
  border:1px solid rgba(28,56,50,.18);
  border-radius:999px;
  margin-top:.7rem;
  padding:.72rem 1rem;
  background:rgba(28,56,50,.05);
  color:var(--green-dark);
  cursor:pointer;
  font-weight:800;
}
.forgot-link{
  display:inline-block;
  margin:.85rem 0 0;
  color:var(--green-mid);
  font-size:.92rem;
  font-weight:800;
  text-decoration:underline;
  cursor:pointer;
}
.msg{
  display:none;
  margin-top:1rem;
  border-radius:14px;
  padding:.78rem .9rem;
  font-size:.92rem;
  line-height:1.4;
  border:1px solid transparent;
}
.msg.info{background:#EEF5F1;color:var(--info);border-color:#CADFD6}
.msg.success{background:#EAF5EE;color:var(--success);border-color:#B9D8C5}
.msg.error{background:#FFF0ED;color:var(--danger);border-color:#F0C3BB}
.footer{
  margin-top:1.35rem;
  text-align:center;
  color:rgba(255,249,234,.72);
  font-size:.86rem;
  line-height:1.45;
}
.footer a{color:#FFF9EA;font-weight:800}
.signup-line{color:rgba(255,249,234,.78)!important}
.signup-line a{color:#FFF9EA!important}
.sign-in-link{
  margin-top:1rem;
  text-align:center;
  color:var(--text-muted);
  font-size:.92rem;
}
.sign-in-link a{color:var(--green);font-weight:900}
.steps{
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
  margin:1rem 0 1.15rem;
}
.step-ind{
  flex:1 1 auto;
  min-width:92px;
  border:1px solid rgba(28,56,50,.12);
  border-radius:999px;
  background:#fff;
  color:var(--text-muted);
  padding:.42rem .55rem;
  text-align:center;
  font-size:.76rem;
  font-weight:900;
}
.step-ind.active{background:var(--green);color:#fff;border-color:var(--green)}
.step-ind.done{background:var(--green-light);color:var(--green-dark);border-color:#BFD8CA}
.hint,.strength-hint{
  color:var(--text-muted);
  font-size:.84rem;
  line-height:1.4;
  margin:-.15rem 0 .65rem;
}
.code-wrap{position:relative}
.code-status{
  position:absolute;
  right:.8rem;
  top:50%;
  transform:translateY(-50%);
  font-weight:900;
}
.code-label{
  min-height:1.1rem;
  margin:.45rem 0 .4rem;
  color:var(--green-mid);
  font-size:.86rem;
  font-weight:800;
}
.strength-bar{
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(28,56,50,.12);
  margin:.55rem 0 .55rem;
}
.strength-fill{height:100%;border-radius:999px;transition:width .18s ease,background .18s ease}
.req-list,.pw-reqs{
  display:grid;
  gap:.35rem;
  margin:.5rem 0 .9rem;
  color:var(--text-muted);
  font-size:.82rem;
}
.req-list span,.pw-req{padding-left:1.05rem;position:relative}
.req-list span:before,.pw-req:before{content:'•';position:absolute;left:.1rem;color:#A7B1AD}
.req-list .met,.pw-req.met{color:var(--success);font-weight:800}
.req-list .met:before,.pw-req.met:before{content:'✓';color:var(--success)}
@keyframes dfLift{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes dfFadeIn{from{opacity:0}to{opacity:1}}
@media (max-width:640px){
  body{align-items:flex-start;padding:5rem 1rem 1.2rem}
  .back-site-link{top:12px;left:12px;font-size:.82rem;padding:.48rem .7rem}
  .wrap{width:100%;padding-top:0}
  .logo-wrap{margin-bottom:1.1rem!important}
  .logo-wrap img{width:170px!important;max-width:64%!important}
  .card{border-radius:20px;padding:1.25rem}
  .steps{gap:.32rem}
  .step-ind{min-width:calc(50% - .32rem);font-size:.72rem}
  h1{font-size:1.7rem}
}
