

.auth-page .page-shell {
  height: auto;
  min-height: 100svh;
}

.auth-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px 64px;
  padding: 38px 0 58px;
}


.auth-aside { max-width: 520px; }
.auth-aside .eyebrow { margin-bottom: 20px; }
.auth-aside h1 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 47px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1.8px;
}
.auth-h1-accent { color: var(--accent); }
.auth-h1-dot { color: var(--sky); }
.auth-lede {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}
.auth-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.auth-points li {
  position: relative;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: .7;
}
.auth-points strong { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -.1px; }
.auth-points span { font-size: 11px; color: var(--faint); line-height: 1.6; }

.auth-quote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 28px;
  padding: 13px 16px;
  border-left: 2px solid rgba(11, 150, 119, .55);
  background: rgba(11, 150, 119, .045);
  border-radius: 0 8px 8px 0;
}
.auth-quote span { font-size: 20px; line-height: 1; color: rgba(11, 150, 119, .45); font-family: var(--font-serif); }
.auth-quote p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }


.auth-panel {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 26px 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 26px 60px -34px rgba(60, 55, 40, .5), 0 2px 8px rgba(60, 55, 40, .04);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.auth-tab {
  position: relative;
  z-index: 1;
  height: 34px;
  border: 0;
  background: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  transition: color .18s;
}
.auth-tab.active { color: var(--ink); }
.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 34px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid rgba(227, 222, 212, .9);
  box-shadow: 0 2px 6px rgba(60, 55, 40, .07);
  transition: transform .24s var(--ease-out);
}

.auth-banner {
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.75;
}
.auth-banner.warn {
  background: #fdf4f0;
  border-color: #f0d3c7;
  color: #a04a30;
}
.auth-banner.ok {
  background: var(--accent-soft);
  border-color: rgba(11, 150, 119, .3);
  color: var(--accent-deep);
}

.auth-field { display: block; margin-bottom: 13px; }
.auth-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .2px;
}
.field-opt {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--canvas);
  color: var(--faint);
  font-size: 9.5px;
}
.auth-field input {
  width: 100%;
  height: 41px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-field input::placeholder { color: #ada79a; }
.auth-field input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 150, 119, .1);
}
.auth-field.invalid input { border-color: #dc9a86; background: #fdf7f4; }
.auth-field.invalid input:focus { box-shadow: 0 0 0 3px rgba(196, 96, 70, .12); }

.field-err {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-style: normal;
  color: #b4553a;
}
.field-err:empty { display: none; }
.field-err-block { margin: -4px 0 10px; }


.captcha-box { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.captcha-img {
  width: 128px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--canvas);
  cursor: pointer;
  user-select: none;
}
.captcha-refresh {
  padding: 0; border: 0; border-bottom: 1px solid rgba(11, 150, 119, .35);
  background: none; color: var(--accent-deep);
  font-family: inherit; font-size: 11.5px; cursor: pointer;
}
.captcha-refresh:hover { color: var(--accent); }
@media (max-width: 420px) {
  .captcha-img { width: 116px; height: 40px; }
}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 54px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  font-family: inherit;
  font-size: 10.5px;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--accent-deep); background: var(--accent-soft); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 16px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}
.auth-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.auth-check-block {
  align-items: flex-start;
  margin: 4px 0 2px;
  line-height: 1.6;
}
.auth-check-block input { margin-top: 1.5px; flex-shrink: 0; }
.auth-link {
  color: var(--accent-deep);
  font-size: 11.5px;
  border-bottom: 1px solid rgba(11, 150, 119, .3);
}
.auth-link:hover { border-bottom-color: var(--accent); }

.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 10px 22px -12px rgba(11, 150, 119, .7);
  transition: background .18s, transform .18s, box-shadow .18s, opacity .18s;
}
.auth-submit:hover { background: var(--accent-deep); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .62; cursor: default; transform: none; }

.auth-hint {
  margin: 13px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
}
.auth-switch {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-deep);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 650;
}
.auth-switch:hover { text-decoration: underline; }

.auth-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--faint);
}
.auth-foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9c3b6;
  flex-shrink: 0;
}
.auth-foot-dot.online { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, .65); }
.auth-foot-dot.offline { background: #d99a3c; }


@media (max-width: 1020px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 0 46px;
  }
  .auth-aside { max-width: 100%; }
  .auth-aside h1 { font-size: clamp(30px, 6vw, 40px); }
  .auth-points { grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 20px; }
  .auth-quote { display: none; }
  .auth-panel {
    justify-self: center;
    max-width: 460px;
  }
}

@media (max-width: 640px) {
  .auth-points { grid-template-columns: 1fr; }
  .auth-panel { padding: 20px 18px 18px; border-radius: 15px; }
  .auth-aside h1 { font-size: 28px; letter-spacing: -1.1px; }
  .auth-lede { font-size: 12.5px; }
}
