:root {
  --auth-red: #e5312c;
  --auth-red-dark: #c4201b;
  --auth-black: #1a1a1a;
  --auth-ink: #252525;
  --auth-muted: #666;
  --auth-soft: #f5f5f5;
  --auth-border: #ebebeb;
  --auth-green: #4caf50;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: #111;
  font-family: "Barlow", Arial, sans-serif;
  color: var(--auth-ink);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  min-height: 100vh;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  padding: 48px;
  background:
    radial-gradient(circle at 6% 92%, rgba(229, 49, 44, 0.26), transparent 32%),
    linear-gradient(135deg, #1a1a1a 0%, #171717 58%, #222 100%);
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.auth-left-logo,
.auth-form-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-left-logo {
  position: absolute;
  top: 48px;
  left: 48px;
  z-index: 1;
}

.auth-mark,
.auth-small-mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.auth-mark svg,
.auth-small-mark svg {
  display: block;
}

.auth-mark svg {
  width: 32px;
  height: 32px;
}

.auth-small-mark svg {
  width: 24px;
  height: 24px;
}

.auth-mark rect,
.auth-small-mark rect {
  fill: var(--auth-red);
}

.auth-mark path,
.auth-small-mark path {
  stroke: #fff;
  stroke-linecap: round;
  fill: none;
}

.auth-mark path {
  stroke-width: 2.4;
}

.auth-small-mark path {
  stroke-width: 2;
}

.auth-wordmark {
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.auth-wordmark strong {
  color: var(--auth-red);
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-kicker,
.auth-section-label {
  margin: 0 0 16px;
  color: var(--auth-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-brand-copy h1 {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
}

.auth-body {
  max-width: 390px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.75;
}

.auth-stats {
  display: flex;
  gap: 36px;
  margin: 0;
}

.auth-stats div {
  min-width: 0;
}

.auth-stats dt {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.auth-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.auth-brand-contact {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 500;
}

.auth-brand-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-brand-contact a:hover {
  color: var(--auth-red);
}

.auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 96px 56px 72px;
  background: #fff;
}

.auth-form-logo {
  position: absolute;
  top: 48px;
  left: 56px;
  color: var(--auth-black);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-form-logo strong {
  color: var(--auth-red);
}

.auth-form-content {
  width: 100%;
}

.auth-section-label {
  margin-bottom: 8px;
}

.auth-form-content h2 {
  margin: 0 0 32px;
  color: var(--auth-black);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-forgot .auth-form-content h2,
.auth-success-state h2 {
  margin-bottom: 10px;
}

.auth-form-desc {
  margin: 0 0 32px;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

.auth-alert {
  margin-bottom: 20px;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-alert-error {
  border: 1px solid rgba(229, 49, 44, 0.2);
  background: rgba(229, 49, 44, 0.08);
  color: var(--auth-red-dark);
}

.auth-form {
  margin: 0;
}

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

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  border: 1.5px solid var(--auth-border);
  border-radius: 3px;
  outline: none;
  background: var(--auth-soft);
  color: var(--auth-black);
  padding: 13px 42px 13px 16px;
  font: 15px "Barlow", Arial, sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--auth-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 49, 44, 0.08);
}

.auth-field input::placeholder {
  color: #aaa;
}

.auth-input-icon,
.auth-input-action {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #999;
}

.auth-input-icon {
  pointer-events: none;
}

.auth-input-action {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.auth-input-action:hover,
.auth-input-action:focus-visible {
  color: var(--auth-red);
}

.eye-closed,
.auth-input-action.show-password .eye-open {
  display: none;
}

.auth-input-action.show-password .eye-closed {
  display: block;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.auth-remember input,
.auth-consent input {
  accent-color: var(--auth-red);
}

.auth-options a,
.auth-back-link {
  color: var(--auth-red);
  text-decoration: none;
}

.auth-options a {
  color: #999;
  font-size: 12.5px;
  font-weight: 500;
}

.auth-options a:hover,
.auth-back-link:hover {
  color: var(--auth-red-dark);
}

.auth-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  background: var(--auth-soft);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-consent:has(input:checked) {
  border-color: rgba(229, 49, 44, 0.25);
  background: rgba(229, 49, 44, 0.04);
}

.auth-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.auth-consent span {
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-consent a {
  color: var(--auth-red);
  font-weight: 700;
  text-decoration: none;
}

.auth-consent a:hover {
  color: var(--auth-red-dark);
}

.auth-turnstile {
  display: flex;
  justify-content: center;
  min-height: 70px;
  margin-bottom: 20px;
  border: 1.5px solid var(--auth-border);
  border-radius: 3px;
  background: var(--auth-soft);
  padding: 10px;
}

.auth-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 3px;
  background: var(--auth-red);
  color: #fff;
  padding: 15px;
  font: 700 13px "Barlow", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.auth-primary-btn:hover {
  background: var(--auth-red-dark);
}

.auth-primary-btn:active {
  transform: scale(0.99);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 20px;
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

.auth-back-link svg {
  transition: transform 0.2s;
}

.auth-back-link:hover svg {
  transform: translateX(-2px);
}

.auth-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.1);
  color: var(--auth-green);
}

.auth-success-state p {
  max-width: 320px;
  margin: 0 0 18px;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

.auth-success-note {
  border: 1.5px solid var(--auth-border);
  border-radius: 3px;
  background: var(--auth-soft);
  padding: 12px 14px;
}

.auth-footer {
  position: absolute;
  right: 56px;
  bottom: 32px;
  left: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-footer a {
  color: #bbb;
  font-size: 11px;
  text-decoration: none;
}

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

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

  .auth-brand-panel {
    min-height: 360px;
    padding: 32px 28px;
  }

  .auth-left-logo {
    top: 28px;
    left: 28px;
  }

  .auth-brand-copy {
    margin-top: 80px;
  }

  .auth-brand-copy h1 {
    font-size: 40px;
  }

  .auth-form-panel {
    min-height: auto;
    padding: 96px 28px 88px;
  }

  .auth-form-logo {
    top: 32px;
    left: 28px;
  }

  .auth-footer {
    right: 28px;
    left: 28px;
  }
}

@media (max-width: 560px) {
  .auth-brand-panel {
    min-height: 300px;
    padding: 24px 20px;
  }

  .auth-left-logo {
    top: 24px;
    left: 20px;
  }

  .auth-brand-copy {
    margin-top: 68px;
  }

  .auth-brand-copy h1 {
    font-size: 34px;
  }

  .auth-body {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .auth-stats {
    gap: 20px;
  }

  .auth-stats dt {
    font-size: 24px;
  }

  .auth-form-panel {
    padding: 88px 20px 96px;
  }

  .auth-form-content h2 {
    font-size: 26px;
  }

  .auth-options {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .auth-options a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .auth-footer {
    flex-wrap: wrap;
    justify-content: center;
  }
}
