/* Auth v8 - clean login and register cards. */

.auth-v8 {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.05fr);
  gap: 18px;
  width: min(1040px, calc(100% - 30px));
  min-height: calc(100vh - 150px);
  align-items: center;
  margin: 22px auto 46px;
}

.auth-hero-v8,
.auth-card-v8 {
  border: 1px solid var(--v8-line);
  border-radius: 24px;
  box-shadow: var(--v8-shadow);
}

.auth-hero-v8 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 40px;
  background:
    radial-gradient(circle at 18% 16%, rgba(62, 112, 222, 0.14), transparent 38%),
    linear-gradient(150deg, #edf3fe, #fbfcff);
}

.auth-back-v8 {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--v8-muted);
  font-size: 11px;
  font-weight: 620;
}

.auth-hero-copy-v8 {
  margin: 42px 0 30px;
}

.auth-hero-copy-v8 h1 {
  margin: 8px 0 13px;
  color: #1d2c49;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-hero-copy-v8 p {
  max-width: 420px;
  margin: 0;
  color: var(--v8-muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.auth-feature-list-v8 {
  display: grid;
  gap: 8px;
}

.auth-feature-list-v8 span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--v8-line);
  border-radius: 10px;
  color: var(--v8-text-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.auth-feature-list-v8 .icon {
  color: var(--v8-blue);
}

.auth-card-v8 {
  padding: 34px;
  background: var(--v8-surface);
}

.auth-card-wide-v8 {
  padding: 28px 34px;
}

.auth-card-head-v8 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-card-head-v8 img {
  border-radius: 12px;
}

.auth-card-head-v8 h1 {
  margin: 0;
  font-size: 24px;
}

.auth-card-head-v8 p {
  margin: 3px 0 0;
  color: var(--v8-muted);
  font-size: 11px;
}

.auth-form-v8 {
  display: grid;
  gap: 14px;
}

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

.auth-field-v8 {
  display: grid;
  gap: 6px;
  color: var(--v8-text-2);
  font-size: 11px;
  font-weight: 660;
}

.auth-field-v8 small {
  color: var(--v8-muted);
  font-weight: 500;
}

.auth-field-v8 > input,
.auth-field-v8 > select {
  min-height: 44px;
  border: 1px solid var(--v8-line-strong);
  border-radius: 10px;
  background: var(--v8-surface);
}

.auth-field-v8 > input:focus,
.auth-field-v8 > select:focus {
  border-color: var(--v8-blue);
  box-shadow: 0 0 0 4px rgba(62, 112, 222, 0.09);
}

.auth-input-v8 {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid var(--v8-line-strong);
  border-radius: 10px;
  background: var(--v8-surface);
}

.auth-input-v8:focus-within {
  border-color: var(--v8-blue);
  box-shadow: 0 0 0 4px rgba(62, 112, 222, 0.09);
}

.auth-input-v8 .icon {
  color: var(--v8-muted);
}

.auth-input-v8 input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.auth-input-v8 .password-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--v8-muted);
  background: transparent;
}

.auth-input-v8 .password-toggle:hover {
  color: var(--v8-blue);
  background: var(--v8-blue-soft);
}

.auth-options-v8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--v8-muted);
  font-size: 10px;
}

.auth-submit-v8 {
  min-height: 46px;
  border-radius: 10px;
  font-size: 13px;
}

.auth-footer-v8 {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--v8-line);
  color: var(--v8-muted);
  font-size: 10px;
  text-align: center;
}

.auth-footer-v8 p {
  margin: 5px 0;
}

.auth-footer-v8 a {
  color: var(--v8-blue-deep);
  font-weight: 650;
}

.auth-section-options-v8 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-section-option-v8 {
  position: relative;
  cursor: pointer;
}

.auth-section-option-v8 input {
  position: absolute;
  opacity: 0;
}

.auth-section-option-v8 span {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--v8-line);
  border-radius: 9px;
  color: var(--v8-text-2);
  background: var(--v8-surface);
  font-size: 11px;
  text-align: center;
  font-weight: 640;
}

.auth-section-option-v8:has(input:checked) span {
  color: var(--v8-blue-deep);
  border-color: var(--v8-blue);
  background: var(--v8-blue-soft);
}

.auth-ban-v8 {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(200, 70, 88, 0.24);
  border-radius: 10px;
  color: var(--v8-danger);
  background: var(--v8-danger-soft);
}

.auth-ban-v8 strong {
  font-size: 11.5px;
}

.auth-ban-v8 p {
  margin: 3px 0 8px;
  color: var(--v8-text-2);
  font-size: 10px;
}

[data-theme="dark"] .auth-hero-v8 {
  background:
    radial-gradient(circle at 18% 16%, rgba(127, 168, 248, 0.14), transparent 38%),
    linear-gradient(150deg, #17263e, #111827);
}

[data-theme="dark"] .auth-card-v8 {
  background: var(--v8-surface);
}

[data-theme="dark"] .auth-hero-copy-v8 h1 {
  color: var(--v8-text);
}

[data-theme="dark"] .auth-feature-list-v8 span {
  background: rgba(24, 32, 47, 0.7);
}

@media (max-width: 900px) {
  .auth-v8 {
    grid-template-columns: minmax(0, 1fr);
    width: min(600px, calc(100% - 20px));
  }

  .auth-hero-v8 {
    min-height: 0;
    padding: 26px;
  }

  .auth-hero-copy-v8 {
    margin: 24px 0 18px;
  }
}

@media (max-width: 620px) {
  .auth-v8 {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .auth-hero-v8 {
    display: none;
  }

  .auth-card-v8,
  .auth-card-wide-v8 {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .auth-form-grid-v8,
  .auth-section-options-v8 {
    grid-template-columns: minmax(0, 1fr);
  }
}
