*{box-sizing:border-box}
body{margin:0;font-family:Inter, Segoe UI, Roboto, Arial, sans-serif;background:#2f2d31;color:#fff}
a{color:#fff}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1.15fr;background:#2f2d31}
.auth-visual{background:#ddd url('../img/auth-visual.jpg') center/cover no-repeat;display:flex;align-items:flex-start;justify-content:flex-start;position:relative;min-height:100vh}
.auth-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.12));pointer-events:none}
.auth-brand{display:inline-flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.01em}
.auth-brand img{width:42px;height:42px;object-fit:contain}
.auth-brand span{font-size:30px;line-height:1;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.auth-brand-overlay{position:absolute;top:30px;left:30px;z-index:2;background:rgba(49,47,50,.72);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px 14px;backdrop-filter:blur(8px)}
.auth-brand-panel{display:none;margin-bottom:28px}
.auth-panel{padding:10vh 8vw;display:flex;flex-direction:column;justify-content:center;background:#2f2d31}
.auth-panel h1,.setup-card h1{font-size:42px;margin:0 0 14px;line-height:1.15}
.auth-panel p,.setup-card p{color:#ddd}.auth-form{display:flex;flex-direction:column;gap:10px;margin-top:25px}.auth-form label{font-weight:700}.auth-form input,.auth-form textarea,.auth-form select{width:100%;border:0;border-radius:8px;background:#4b4b4b;color:#fff;padding:15px 16px;font-size:16px;border-bottom:3px solid #ffa500}.auth-form textarea{min-height:90px}.primary{background:#ffa500;color:#000;border:0;border-radius:8px;padding:16px 18px;font-size:18px;font-weight:700;cursor:pointer;margin-top:12px}.primary:disabled{opacity:.65;cursor:wait}.auth-link a{font-weight:700}.setup-auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px}.setup-card{width:min(560px,94vw);background:#353535;padding:34px;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.22)}.setup-card.wide{width:min(760px,96vw)}.small-logo{width:55px;height:55px;object-fit:contain;background:transparent;border-radius:0;padding:0;margin-bottom:16px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.steps span{padding:8px 12px;border-radius:999px;background:#fff;color:#111;font-weight:700}.steps .on{background:#ffa500}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.snackbar{visibility:hidden;opacity:0;position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#111;color:#fff;padding:14px 18px;border-radius:8px;z-index:99999;max-width:90vw}.snackbar.show{visibility:visible;opacity:1}
@media(max-width:850px){.auth-page{grid-template-columns:1fr}.auth-visual{min-height:34vh}.auth-panel{padding:40px 24px}.auth-brand-overlay{top:20px;left:20px}.auth-brand-overlay span{font-size:25px}.auth-brand-panel{display:inline-flex}.auth-visual+.auth-panel .auth-brand-panel{display:none}.auth-panel h1,.setup-card h1{font-size:34px}.two{grid-template-columns:1fr}}

/* Signup verification resend helper */
.link-button {
  border: 0;
  background: transparent;
  color: var(--accent, #2563eb);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-button:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.auth-hint {
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}


/* Password visibility controls */
.password-input-wrap {
  position: relative;
  width: 100%;
}
.auth-form .password-input-wrap input {
  padding-right: 56px;
}
.password-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.password-eye:hover,
.password-eye:focus-visible,
.password-eye.is-showing {
  background: rgba(255,255,255,.12);
  color: #ffa500;
  outline: none;
}
.password-eye .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  pointer-events: none;
}
.password-policy {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #ddd;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-label-row a {
  color: #ffa500;
  font-size: 14px;
  font-weight: 700;
}
.auth-link {
  line-height: 1.5;
}

.auth-legal-summary{font-size:12px;line-height:1.5;max-width:720px;margin:14px 0 0!important;color:#bbb!important}
.auth-legal-summary a{color:#ffb13b;font-weight:700}
.legal-consent-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(17,17,19,.78);backdrop-filter:blur(6px)}
.legal-consent-overlay[hidden]{display:none}
.legal-modal-open{overflow:hidden}
.legal-consent-dialog{width:min(620px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;color:#1f232b;border-radius:20px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.38)}
.legal-consent-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff0e7;color:#c94708;font-size:24px;font-weight:900}
.legal-consent-dialog h2{margin:14px 0 8px;font-size:28px}
.legal-consent-dialog>p{color:#5f6672;line-height:1.55}
.legal-required-check,.cookie-preferences label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.legal-required-check{margin:20px 0;padding:16px;border:1px solid #d9dde5;border-radius:14px;background:#f8f9fb;line-height:1.5}
.legal-required-check input,.cookie-preferences input{flex:0 0 auto;width:18px;height:18px;margin-top:2px;accent-color:#ff5f12}
.legal-required-check a,.legal-document a{color:#b94308;font-weight:700}
.cookie-preferences{border:0;padding:0;margin:0}
.cookie-preferences legend{font-weight:800;margin-bottom:10px}
.cookie-preferences label{padding:10px 0;border-top:1px solid #eceef2}
.cookie-preferences span{display:flex;flex-direction:column;gap:3px}
.cookie-preferences small{color:#69717d;line-height:1.4}
.legal-version-note{font-size:12px!important;color:#7a818b!important}
.legal-consent-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.legal-consent-actions .primary{margin:0}
.legal-secondary{border:1px solid #d9dde5;background:#fff;border-radius:8px;padding:14px 18px;font-weight:700;cursor:pointer}
.legal-page{min-height:100vh;padding:40px 20px;background:#f3f4f6;color:#20242c}
.legal-document{width:min(900px,100%);margin:auto;background:#fff;border-radius:20px;padding:clamp(24px,5vw,56px);box-shadow:0 18px 55px rgba(20,24,32,.1)}
.legal-header{padding-bottom:24px;border-bottom:1px solid #e4e7ec}
.legal-header img{display:block;width:190px;height:auto;margin:22px 0}
.legal-header h1{font-size:clamp(32px,5vw,48px);margin:0 0 8px}
.legal-header p{color:#68707c}
.legal-back{text-decoration:none}
.legal-document section{margin-top:30px}
.legal-document h2{font-size:22px;margin:0 0 10px}
.legal-document p,.legal-document li{font-size:15px;line-height:1.72;color:#3d4551}
.legal-document li+li{margin-top:8px}
@media(max-width:600px){.legal-consent-dialog{padding:22px}.legal-consent-actions{flex-direction:column-reverse}.legal-consent-actions button{width:100%}}

.staging-banner{position:fixed;top:0;left:0;right:0;height:32px;display:flex;align-items:center;justify-content:center;background:#fff3cd;color:#664d03;font-size:13px;font-weight:800;letter-spacing:.04em;z-index:100001;border-bottom:1px solid #ffda6a}
.staging-env{padding-top:32px}
.staging-env .auth-page{min-height:calc(100vh - 32px)}
.staging-env .auth-visual{min-height:calc(100vh - 32px)}
