:root {
  --auth-primary: #275f9d;
  --auth-primary-hover: #1f4f84;
  --auth-ok-bg: #e9f6ee;
  --auth-ok-line: #b8ddc6;
  --auth-ok: #267448;
  --auth-error-bg: #faeceb;
  --auth-error-line: #edc4c0;
  --auth-error: #9a403a;
}

body.auth-v2-page {
  background: var(--v2-bg);
}

.auth-v2-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px 64px;
}

.auth-v2-breadcrumbs {
  margin-bottom: 22px;
}

.auth-v2-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  gap: 24px;
  align-items: start;
}

.auth-v2-layout--login {
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr);
  max-width: 1020px;
  margin: 0 auto;
}

.auth-v2-intro,
.auth-v2-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-xl);
  box-shadow: var(--v2-shadow);
}

.auth-v2-intro {
  padding: 34px;
  position: sticky;
  top: 96px;
}

.auth-v2-intro h1 {
  margin: 7px 0 16px;
  color: var(--v2-ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.auth-v2-intro > p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-v2-info {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface-soft);
}

.auth-v2-info strong {
  display: block;
  color: var(--v2-ink);
  margin-bottom: 5px;
}

.auth-v2-info p {
  margin: 0;
  color: var(--v2-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.auth-v2-steps {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-v2-steps > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--v2-line);
  border-radius: 15px;
  background: var(--v2-surface-soft);
}

.auth-v2-steps > div > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--v2-blue-soft);
  color: var(--v2-blue);
  font-weight: 900;
}

.auth-v2-steps p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.auth-v2-steps strong {
  color: var(--v2-ink);
  font-size: .92rem;
}

.auth-v2-steps small {
  color: var(--v2-muted);
  line-height: 1.4;
}

.auth-v2-card {
  padding: 32px;
}

.auth-v2-card h2 {
  margin: 5px 0 0;
  color: var(--v2-ink);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #34414d;
  font-weight: 750;
}

.auth-field > span {
  font-size: .88rem;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd4dc;
  border-radius: 12px;
  background: #fff;
  color: var(--v2-ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-field input:hover,
.auth-field select:hover,
.auth-field textarea:hover {
  border-color: #b8c4ce;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: #7ea4df;
  box-shadow: 0 0 0 3px rgba(39,95,157,.11);
}

.auth-field-help {
  color: var(--v2-muted);
  font-size: .77rem;
  line-height: 1.4;
  font-weight: 500;
}

.auth-button {
  min-height: 50px;
  border: 1px solid #245689;
  border-radius: 13px;
  padding: 12px 18px;
  background: var(--auth-primary);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.auth-button:hover:not(:disabled) {
  background: var(--auth-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(39,95,157,.18);
}

.auth-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.auth-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 13px;
  line-height: 1.5;
}

.auth-message.is-visible {
  display: block;
}

.auth-message.is-error {
  background: var(--auth-error-bg);
  border: 1px solid var(--auth-error-line);
  color: var(--auth-error);
}

.auth-message.is-ok {
  background: var(--auth-ok-bg);
  border: 1px solid var(--auth-ok-line);
  color: var(--auth-ok);
}

.auth-note {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--v2-line);
  border-radius: 13px;
  background: var(--v2-surface-soft);
  color: var(--v2-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.auth-v2-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--v2-line);
}

.auth-v2-links--single {
  justify-content: center;
}

.auth-v2-secondary-link,
.auth-link-button {
  color: var(--v2-blue);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-v2-secondary-link:hover,
.auth-link-button:hover {
  text-decoration: underline;
}

.auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .auth-v2-layout,
  .auth-v2-layout--login {
    grid-template-columns: 1fr;
  }

  .auth-v2-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .auth-v2-shell {
    padding: 20px 14px 44px;
  }

  .auth-v2-intro,
  .auth-v2-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .auth-v2-intro h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-v2-links {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-button {
    width: 100%;
  }
}
