
:root{
  --auth-bg:#06110b;
  --auth-panel:#0d1713;
  --auth-panel-2:#101c17;
  --auth-border:rgba(217,177,95,.18);
  --auth-gold:#d9b15f;
  --auth-gold-2:#f0d58e;
  --auth-text:#f6f3ea;
  --auth-muted:#aeb8ad;
  --auth-green:#27d07c;
  --auth-red:#ff6b7d;
}
*{box-sizing:border-box}
body.auth-body{
  margin:0;
  min-height:100vh;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--auth-text);
  background:
    radial-gradient(700px 480px at 82% 8%, rgba(217,177,95,.12), rgba(217,177,95,0)),
    radial-gradient(620px 420px at 10% 88%, rgba(38,208,124,.08), rgba(38,208,124,0)),
    linear-gradient(180deg,#07110d 0%, #0a1511 52%, #0b1712 100%);
}
.auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(320px, 520px) minmax(360px, 460px);
  gap:28px;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
}
.auth-brand-card,
.auth-form-card{
  border:1px solid var(--auth-border);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(15,24,19,.96), rgba(10,16,13,.98));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02), 0 22px 48px rgba(0,0,0,.32);
}
.auth-brand-card{padding:34px 34px 30px}
.auth-form-card{padding:28px}
.auth-brand-top{display:flex;align-items:center;gap:14px}
.auth-brand-mark{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(217,177,95,.34);background:linear-gradient(180deg,#16221a,#0d1511);color:#f0dca8;font-weight:900}
.auth-brand-name{font-size:30px;font-weight:800;letter-spacing:.08em;color:var(--auth-gold-2);text-transform:uppercase}
.auth-brand-sub{margin-top:6px;font-size:14px;color:var(--auth-muted)}
.auth-hero{margin-top:28px;font-size:48px;line-height:.95;font-weight:900;color:var(--auth-text)}
.auth-copy{margin-top:16px;font-size:18px;line-height:1.5;color:#c7d0c7;max-width:42ch}
.auth-bullets{margin-top:22px;display:grid;gap:12px}
.auth-bullet{padding:14px 16px;border-radius:16px;border:1px solid rgba(217,177,95,.12);background:rgba(16,26,21,.72);font-weight:700;color:#d7ddd5}
.auth-form-title{font-size:32px;line-height:1.05;font-weight:900;color:var(--auth-text)}
.auth-form-sub{margin-top:8px;font-size:15px;color:var(--auth-muted)}
.auth-error{margin-top:16px;padding:12px 14px;border-radius:14px;background:rgba(255,107,125,.08);border:1px solid rgba(255,107,125,.22);color:#ff9aaa;font-weight:700}
.auth-form{margin-top:20px;display:grid;gap:16px}
.auth-field label,.auth-plan-title{display:block;margin-bottom:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f998e}
.auth-input{width:100%;min-height:50px;padding:0 14px;border-radius:14px;border:1px solid rgba(217,177,95,.14);background:rgba(10,17,14,.96);color:var(--auth-text);font-size:15px;font-weight:600;outline:none}
.auth-input:focus{border-color:rgba(217,177,95,.38);box-shadow:0 0 0 3px rgba(217,177,95,.08)}
.auth-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-plan-card{display:block;position:relative;padding:16px;border-radius:18px;border:1px solid rgba(217,177,95,.14);background:linear-gradient(180deg, rgba(16,25,20,.95), rgba(10,16,13,.98));cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.auth-plan-card:hover{transform:translateY(-1px);border-color:rgba(217,177,95,.26)}
.auth-plan-card input{position:absolute;opacity:0;inset:0}
.auth-plan-card.is-selected,.auth-plan-card:has(input:checked){border-color:rgba(217,177,95,.44);box-shadow:0 14px 28px rgba(0,0,0,.22), inset 0 0 0 1px rgba(240,213,142,.08)}
.auth-plan-name{font-size:22px;font-weight:900;color:var(--auth-gold-2)}
.auth-plan-trial{margin-top:6px;font-size:14px;font-weight:800;color:var(--auth-green)}
.auth-plan-copy{margin-top:8px;font-size:14px;line-height:1.45;color:#c9d1c8}
.auth-submit{min-height:52px;border-radius:16px;border:1px solid rgba(217,177,95,.42);background:linear-gradient(180deg,#f0d58e,#d9b15f);color:#07110b;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 12px 28px rgba(217,177,95,.16)}
.auth-alt{margin-top:18px;font-size:14px;color:var(--auth-muted)}
.auth-alt a{color:var(--auth-gold-2);font-weight:800;text-decoration:none}
@media (max-width: 960px){.auth-shell{grid-template-columns:1fr;max-width:760px;margin:0 auto}.auth-brand-card{order:2}.auth-form-card{order:1}}
@media (max-width: 560px){.auth-shell{padding:24px 16px}.auth-brand-card,.auth-form-card{padding:22px}.auth-hero{font-size:38px}.auth-plan-grid{grid-template-columns:1fr}}

.auth-owner-row{margin-top:10px;}
.auth-owner-link{display:inline-block;font-size:12px;color:#9aa59b;text-decoration:none;}
.auth-owner-link:hover{color:#d9b15f;}


/* v18.19 — signup Terms & Risk Disclaimer acceptance */
.auth-terms-box{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px;
  border:1px solid rgba(217,177,95,.16);
  border-radius:16px;
  background:rgba(10,17,14,.72);
  color:#c9d1c8;
  font-size:13px;
  line-height:1.45;
}
.auth-terms-box input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--auth-gold);
  flex:0 0 auto;
}
.auth-terms-box a{
  color:var(--auth-gold-2);
  font-weight:800;
  text-decoration:none;
}
.auth-terms-box a:hover{text-decoration:underline;}
.auth-legal-shell{
  min-height:100vh;
  max-width:980px;
  margin:0 auto;
  padding:36px 20px 56px;
}
.auth-legal-card{
  border:1px solid var(--auth-border);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(15,24,19,.96), rgba(10,16,13,.98));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02), 0 22px 48px rgba(0,0,0,.32);
  padding:30px;
}
.auth-legal-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:24px;}
.auth-legal-kicker{font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--auth-gold);}
.auth-legal-title{margin:8px 0 0;font-size:38px;line-height:1.02;color:var(--auth-text);}
.auth-legal-version{font-size:12px;color:var(--auth-muted);text-align:right;}
.auth-legal-section{padding:20px 0;border-top:1px solid rgba(217,177,95,.12);}
.auth-legal-section h2{margin:0 0 10px;font-size:20px;color:var(--auth-gold-2);}
.auth-legal-section p,.auth-legal-section li{color:#c9d1c8;line-height:1.62;font-size:15px;}
.auth-legal-section ul{margin:10px 0 0;padding-left:20px;}
.auth-legal-callout{
  margin:18px 0 4px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,107,125,.24);
  background:rgba(255,107,125,.08);
  color:#ffd2d7;
  font-weight:800;
  line-height:1.5;
}
.auth-legal-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.auth-legal-actions a{
  text-decoration:none;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  flex:0 0 auto;
}
.auth-legal-actions .auth-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:168px;
  padding:0 20px;
}
.auth-legal-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:132px;min-height:48px;padding:0 18px;border-radius:15px;
  border:1px solid rgba(217,177,95,.24);color:var(--auth-gold-2);font-weight:900;
}
@media (max-width: 640px){
  .auth-legal-card{padding:22px}
  .auth-legal-top{display:block}
  .auth-legal-version{text-align:left;margin-top:10px}
  .auth-legal-title{font-size:31px}
  .auth-legal-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .auth-legal-actions .auth-submit,.auth-legal-link{width:100%;min-width:0}
}
@media print{
  .auth-legal-actions{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .auth-legal-actions a{
    display:inline-flex !important;
    width:auto !important;
    min-width:max-content !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
}


/* v20.0 — password reset + email 2FA */
.auth-success{
  margin-top:16px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(39,208,124,.08);
  border:1px solid rgba(39,208,124,.22);
  color:#a9f2cd;
  font-weight:800;
}
.auth-shell-narrow{
  grid-template-columns:minmax(320px, 500px) minmax(340px, 440px);
}
.auth-alt-compact{margin-top:8px;}
.auth-code-input{
  font-size:24px;
  letter-spacing:.2em;
  text-align:center;
  font-weight:900;
}
.auth-inline-form{margin-top:12px;}
.auth-link-button{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--auth-gold-2);
  font-weight:900;
  cursor:pointer;
  padding:0;
  font-size:14px;
}
.auth-link-button:hover{text-decoration:underline;}

/* v20.1 — trusted browser checkbox for email 2FA */
.auth-trust-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(217,177,95,.14);
  background:rgba(10,17,14,.68);
  color:#cbd4ca;
  font-size:14px;
  font-weight:800;
}
.auth-trust-box input{
  width:18px;
  height:18px;
  accent-color:var(--auth-gold);
  flex:0 0 auto;
}

/* v20.8 — Terms & Risk cleanup */
.auth-legal-section-important{
  border:1px solid rgba(234,197,108,.28);
  background:linear-gradient(135deg, rgba(234,197,108,.10), rgba(14,71,50,.16));
  border-radius:18px;
  padding:18px 20px;
  margin-top:18px;
}
.auth-legal-section-important h2{margin-top:0;}
.auth-legal-section-important ul{margin-bottom:0;}
