/* ══════════════════════════════════════════════════════════
   ТАЛЬВЕН · регистрация аккаунта
   ══════════════════════════════════════════════════════════ */

.auth-main {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.auth-main::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 90vh;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 18% 18%, rgba(232, 163, 61, 0.14), transparent 70%),
    radial-gradient(50% 60% at 88% 4%, rgba(74, 120, 148, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(11, 15, 19, 0) 40%, var(--bg) 100%);
}

.auth-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(70% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 20%, #000 20%, transparent 78%);
}

.auth-header__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-header__links a {
  transition: color 0.2s;
}

.auth-header__links a:hover {
  color: var(--amber);
}

.auth-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
}

.auth-intro .section-title {
  font-size: clamp(38px, 5.4vw, 64px);
}

.auth-intro__lead {
  max-width: 47ch;
  margin-top: 22px;
  color: #b9c6ce;
  font-size: 15.5px;
  line-height: 1.75;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  max-width: 50ch;
}

.auth-point {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(17, 24, 32, 0.48);
}

.auth-point__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding-top: 2px;
}

.auth-point h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #eaf1f5;
}

.auth-point p {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-board {
  position: relative;
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 2px solid rgba(232, 163, 61, 0.55);
  background: rgba(232, 163, 61, 0.05);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa8b1;
}

.auth-board b {
  color: var(--amber-hot);
  font-weight: 500;
}

.auth-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(28, 38, 47, 0.6), rgba(13, 18, 23, 0.92) 60%),
    var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(232, 163, 61, 0.1) 70%, transparent);
}

.auth-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.auth-card__head h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #f2f7fa;
}

.auth-card__head p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #96a5ae;
}

.auth-field label span {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #64737d;
  text-transform: none;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(6, 9, 12, 0.72);
  color: #eef4f7;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input::placeholder {
  color: #5c6a74;
}

.auth-input--code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-input:focus {
  border-color: rgba(232, 163, 61, 0.78);
  background: rgba(6, 9, 12, 0.9);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.1);
}

.auth-input[aria-invalid="true"] {
  border-color: rgba(217, 92, 69, 0.75);
  box-shadow: 0 0 0 3px rgba(217, 92, 69, 0.1);
}

.auth-submit {
  margin-top: 8px;
}

.auth-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.auth-fine {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
  color: #6f7d86;
  text-align: center;
}

.auth-status {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid transparent;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-status[hidden] {
  display: none;
}

.auth-status.is-error {
  border-color: rgba(217, 92, 69, 0.38);
  background: rgba(217, 92, 69, 0.09);
  color: #f0aa9c;
}

.auth-status.is-info {
  border-color: rgba(127, 154, 168, 0.32);
  background: rgba(127, 154, 168, 0.08);
  color: #c2d0d8;
}

.auth-status.is-ok {
  border-color: rgba(127, 176, 138, 0.4);
  background: rgba(127, 176, 138, 0.1);
  color: #b9dcc2;
}

.auth-success[hidden] {
  display: none;
}

.auth-success {
  display: grid;
  gap: 16px;
  text-align: left;
}

.auth-success__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ok);
}

.auth-success__mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 14px rgba(127, 176, 138, 0.7);
}

.auth-success h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.auth-success h2 em {
  font-style: normal;
  color: var(--amber);
}

.auth-success p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #b3c0c8;
}

.auth-success__name {
  padding: 12px 14px;
  border: 1px dashed rgba(232, 163, 61, 0.4);
  background: rgba(232, 163, 61, 0.06);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--amber-hot);
  overflow-wrap: anywhere;
}

.auth-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-success__actions .btn {
  flex: 1 1 180px;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6d76;
}

.auth-form-links a {
  color: #aab8c0;
  border-bottom: 1px solid rgba(232, 163, 61, 0.35);
}

.auth-form-links a:hover {
  color: var(--amber);
}

.auth-point a {
  color: var(--amber);
  border-bottom: 1px solid rgba(232, 163, 61, 0.35);
}

.auth-point a:hover {
  color: var(--amber-hot);
}

.auth-board a {
  color: var(--amber-hot);
}

.auth-footer-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.65;
  color: #6f7d86;
}

.auth-footer-note a {
  color: #a9b7bf;
  border-bottom: 1px solid rgba(232, 163, 61, 0.4);
}

.auth-footer-note a:hover {
  color: var(--amber);
}

@media (max-width: 920px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    order: 0;
  }

  .auth-card {
    order: 1;
  }

  .auth-points {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .auth-header__links {
    gap: 14px;
    font-size: 9.5px;
  }

  .auth-header__links a:first-child {
    display: none;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-success__actions .btn {
    flex-basis: 100%;
  }
}

@media print {
  .auth-main::before,
  .auth-main::after {
    display: none;
  }
}
