* { box-sizing: border-box; }
[hidden] { display: none !important; }

.zorvi-auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color-scheme: dark;
  color: #f6efff;
  background: radial-gradient(ellipse at 80% 1%, #352057, transparent 46%), #0c0818;
  font: 16px/1.5 'DM Sans', system-ui, sans-serif;
}

.zorvi-auth-page a { color: #e4c4ff; }

.auth-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 8px clamp(16px, 4vw, 46px);
}

.auth-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}

.auth-header .auth-logo {
  color: #fcf5ff;
  font: 800 18px Outfit, system-ui, sans-serif;
  letter-spacing: .2em;
  text-decoration: none;
}

.auth-logo span { color: #edabf5; }

.auth-card {
  position: relative;
  width: min(450px, calc(100% - 28px));
  padding: clamp(19px, 5vw, 34px);
  margin: clamp(16px, 7vh, 75px) auto 22px;
  border: 1px solid #513669;
  border-radius: 23px;
  background: linear-gradient(125deg, #211533, #130e23 75%);
  box-shadow: 0 22px 70px #080511b8;
}

.auth-card::before {
  position: absolute;
  content: '';
  inset: 0 20% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dca6ff, transparent);
}

.auth-emblem {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 14px;
  border: 1px solid #8056aa;
  border-radius: 13px;
  background: #392352;
  color: #efcbff;
}

.auth-emblem svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.auth-eyebrow {
  margin: 0 0 5px;
  color: #e4b8ff;
  font-weight: 750;
  font-size: 10px;
  letter-spacing: .17em;
}

.auth-card h1 {
  margin: 0;
  font: 750 clamp(28px, 7vw, 37px)/1.12 Outfit, system-ui, sans-serif;
}

.auth-caption { margin: 9px 0 20px; color: #cdbfdc; font-size: 14px; }
#authForm { display: grid; gap: 14px; }

.auth-card label {
  display: block;
  margin-bottom: 6px;
  color: #eee2f9;
  font-size: 13px;
  font-weight: 700;
}

.auth-card input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #6b5085;
  border-radius: 10px;
  padding: 8px 11px;
  color: #fff9ff;
  background: #100c1d;
  font: inherit;
}

.auth-password-row { position: relative; }
.auth-password-row input { padding-right: 60px; }

.auth-visibility {
  position: absolute;
  inset: 1px 1px 1px auto;
  min-width: 55px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e2c8fa;
  font: 700 13px 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
}

.auth-recover,
.auth-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.auth-login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
}

.auth-card .auth-stay {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}

.auth-stay input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #c69af6;
}

.auth-card .auth-code {
  text-align: center;
  font: 750 24px Outfit, system-ui, sans-serif;
  letter-spacing: .36em;
}

.auth-code::placeholder { color: #a48bb9; }

.auth-resend {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4c4ff;
  font: 700 13px 'DM Sans', system-ui, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-resend:disabled {
  color: #cdbfdc;
  text-decoration: none;
  cursor: default;
}

.auth-card .auth-primary {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 47px;
  border: 1px solid #dcb4ff;
  border-radius: 11px;
  background: linear-gradient(105deg, #b99afc, #e1a5ea);
  color: #1d0d31;
  font: 800 15px 'DM Sans', system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.auth-primary:disabled { opacity: .66; cursor: wait; }
.auth-card :focus-visible { outline: 2px solid #edd2ff; outline-offset: 3px; }
.auth-status { margin: 10px 0 0; color: #e4c4ff; font-size: 13px; }
.auth-status:empty { display: none; }
.auth-status.is-error { color: #ffb9ce; }
.auth-switch { margin: 7px 0 0; color: #ccbedb; font-size: 13px; }
