main.auth-entry {
  --entry-surface: #17161b;
  --entry-raised: #211f27;
  --entry-text: #fbf6f8;
  --entry-muted: #c5b8c1;
  --entry-line: #453741;
  --entry-accent: #ff8197;
  width: min(1040px, calc(100% - 32px));
  margin: clamp(24px, 5vw, 66px) auto;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  color: var(--entry-text);
  border: 1px solid var(--entry-line);
  border-radius: 28px;
  background: var(--entry-surface);
  box-shadow: 0 24px 76px #0005;
}

html[data-theme="light"] main.auth-entry,
body[data-theme="light"] main.auth-entry {
  --entry-surface: #fffafc;
  --entry-raised: #f7eef2;
  --entry-text: #21141c;
  --entry-muted: #5e4a57;
  --entry-line: #dac9d1;
  --entry-accent: #a0163a;
  box-shadow: 0 24px 76px #4c1b2f1f;
}

.auth-entry .auth-entry-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(28px, 5vw, 62px);
  border-radius: 27px 0 0 27px;
  background: radial-gradient(ellipse at 20% 8%, #74203d 0, transparent 64%),
    linear-gradient(145deg, #321321, #1c101c 74%);
  color: #fff6fa;
}

.auth-entry-mark {
  display: block;
  width: clamp(76px, 11vw, 126px);
  height: auto;
  filter: drop-shadow(0 12px 24px #f5325650);
}

.auth-entry .auth-entry-kicker {
  margin: 0 0 12px;
  color: #ffb1c0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-entry h1 {
  margin: 0;
  color: #fff6fa;
  font-size: clamp(2.1rem, 4.7vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.auth-entry .auth-entry-intro > p:not(.auth-entry-kicker) {
  margin: 17px 0 0;
  color: #f1dce5;
  line-height: 1.55;
}

.auth-entry .auth-entry-notice:not([hidden]):not(:empty) {
  padding: 12px 14px;
  border: 1px solid #ffb1c052;
  border-radius: 12px;
  background: #ffffff0c;
  font-size: .88rem;
}

.auth-entry [hidden],
.auth-entry .auth-entry-notice:empty,
.auth-entry .form-status:empty {
  display: none !important;
}

.auth-entry-content {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(24px, 4.6vw, 55px);
}

.auth-entry-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--entry-line);
  border-radius: 15px;
  background: var(--entry-raised);
}

.auth-entry-switch a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--entry-muted);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.auth-entry-switch a:hover,
.auth-entry-switch a[aria-current="page"] {
  color: var(--entry-text);
  background: var(--entry-surface);
  border-color: var(--entry-line);
}

.auth-entry-switch a[aria-current="page"] {
  color: var(--entry-accent);
}

.auth-entry-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.auth-entry-form label {
  min-width: 0;
  color: var(--entry-text);
  font-size: .92rem;
  font-weight: 650;
}

.auth-entry-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--entry-line);
  border-radius: 11px;
  background: var(--entry-raised);
  color: var(--entry-text);
  font-size: 1rem;
}

.auth-entry :is(a, button, input):focus-visible {
  outline: 2px solid var(--entry-accent);
  outline-offset: 3px;
}

.auth-entry-form .marketing-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--entry-muted);
  font-size: .85rem;
  line-height: 1.45;
}

.auth-entry-form .marketing-consent-row input { flex: 0 0 auto; margin: 2px 0 0; }
.auth-entry-form .auth-entry-recovery { text-align: right; }
.auth-entry-form .auth-entry-recovery a { color: var(--entry-accent); font-size: .88rem; }
.auth-entry-form .auth-separator, .auth-entry-form .form-status { color: var(--entry-muted); }
.auth-entry-form .form-status { margin: 0; overflow-wrap: anywhere; }
.auth-entry-form .button { width: 100%; min-height: 46px; border-radius: 11px; }
.auth-entry-form .button.primary { background: #bd1b48; color: #fff; }
.auth-entry-form .button.primary:hover { background: #a7153c; }
.auth-entry-form .button.ghost { border-color: var(--entry-line); color: var(--entry-text); }

@media (max-width: 760px) {
  main.auth-entry { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .auth-entry .auth-entry-brand {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 21px 21px 0 0;
  }
  .auth-entry-mark { width: 48px; }
  .auth-entry h1 { font-size: clamp(1.65rem, 6vw, 2.6rem); }
  .auth-entry .auth-entry-kicker { margin-bottom: 6px; }
  .auth-entry .auth-entry-intro > p:not(.auth-entry-kicker) { margin-top: 9px; }
  .auth-entry-content { padding: 18px; gap: 18px; }
}
