.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background:
    radial-gradient(42rem 28rem at 82% 16%, rgba(228, 59, 59, 0.32), transparent 62%),
    radial-gradient(30rem 24rem at 10% 90%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(145deg, #17181c, #24262d);
  color: #fff;
}

.auth__brand::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -11rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.025), 0 0 0 7rem rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.auth__logos {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 0.9rem;
  align-self: flex-start;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.auth__logos img {
  height: 2.9rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
}

.auth__logos-rule {
  width: 1px;
  height: 2.4rem;
  background: #e7e8eb;
}

.auth__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.auth__kicker {
  color: #ffb3b3;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth__copy h1 {
  margin-top: 0.6rem;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.auth__copy p {
  max-width: 31rem;
  margin-top: 1rem;
  color: #c3c7cf;
  font-size: var(--fs-md);
  line-height: 1.55;
}

.auth__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.auth__point {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eaee;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.auth__point .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: #ff9c9c;
}

.auth__foot {
  position: relative;
  z-index: 1;
  color: #8f96a2;
  font-size: var(--fs-xs);
}

.auth__panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(30rem 22rem at 90% 0%, rgba(228, 59, 59, 0.06), transparent 70%),
    var(--bg);
}

.auth__card {
  width: min(26rem, 100%);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth__mobile-brand {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.auth__mobile-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--surface-inverse);
  color: #fff;
  font-size: 0.8rem;
}

.auth__card h2 {
  font-size: var(--fs-2xl);
}

.auth__lead {
  margin-top: 0.35rem;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.auth__form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.auth__message {
  display: none;
  padding: 0.7rem 0.8rem;
  border: 1px solid #f2c9c9;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #8a1b1b;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.auth__message.is-visible {
  display: block;
}

.auth__message.is-success {
  border-color: #bfe5d2;
  background: var(--ok-soft);
  color: #145f3b;
}

.auth__hint {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.auth__switch {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  text-align: center;
}

.auth__switch a {
  color: var(--accent-ink);
  font-weight: 700;
}

.auth__legal {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  text-align: center;
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__panel { min-height: 100dvh; align-content: start; padding-top: max(2rem, env(safe-area-inset-top)); }
  .auth__mobile-brand { display: flex; }
  .auth__card { margin-top: 1rem; }
}

@media (min-width: 861px) and (max-height: 760px) {
  .auth__brand { padding: 1.5rem 2rem; }
  .auth__copy h1 { font-size: 2.3rem; }
  .auth__copy p { margin-top: 0.6rem; }
  .auth__points { margin-top: 0.9rem; }
}
