/* OnlyTest — premium auth shell */

.auth-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.auth-layout {
  display: grid;
  min-height: 100dvh;
}

@media (min-width: 960px) {
  .auth-layout {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  }
}

/* Panel */

.auth-panel {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-8);
  display: flex;
  align-items: stretch;
}

@media (min-width: 960px) {
  .auth-panel {
    padding: var(--space-12) var(--space-10);
  }
}

.auth-panel-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 28rem;
  width: 100%;
}

.auth-panel-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--bg);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.auth-panel-logo .logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--ink);
}

.auth-panel-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.auth-panel-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin: 0;
}

.auth-panel-lead {
  font-size: 1.0625rem;
  opacity: 0.92;
  line-height: 1.55;
  margin: 0;
}

.auth-panel-perks {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 0.9375rem;
}

.auth-panel-perks li {
  position: relative;
  padding-left: 1.1rem;
}

.auth-panel-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.auth-panel-visual {
  margin-top: auto;
  padding-top: var(--space-8);
}

.auth-mini-demo {
  background: rgba(247, 248, 244, 0.08);
  border: 1px solid rgba(247, 248, 244, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.auth-mini-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: var(--space-2);
}

.auth-mini-q {
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.auth-mini-answers {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.auth-mini-answers li {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.8125rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
}

.auth-mini-answers li.is-on {
  background: rgba(215, 240, 120, 0.2);
  border: 1px solid var(--lime);
}

.auth-mini-answers span {
  font-weight: 800;
  width: 1.25rem;
}

.auth-mini-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.auth-mini-bar i {
  display: block;
  height: 100%;
  background: var(--lime);
}

.auth-panel-foot {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lime);
  margin: var(--space-4) 0 0;
}

@media (max-width: 959px) {
  .auth-panel-visual,
  .auth-panel-perks {
    display: none;
  }

  .auth-panel {
    padding: var(--space-6) var(--space-6) var(--space-4);
  }

  .auth-panel-title {
    font-size: 1.25rem;
  }

  .auth-panel-lead {
    font-size: 0.9375rem;
  }
}

/* Main form column */

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-6) var(--space-12);
  background: var(--bg);
}

@media (min-width: 960px) {
  .auth-main {
    padding: var(--space-12) var(--space-16);
  }
}

.auth-messages {
  width: min(100%, 28rem);
  margin: 0 auto var(--space-6);
}

.auth-form-wrap {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.auth-form-wrap-wide {
  width: min(100%, 32rem);
}

.auth-form-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-step-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.auth-form-title {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-form-lead {
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

.auth-form-tight {
  margin-top: var(--space-4);
}

.auth-field label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
}

.auth-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.auth-field-error {
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: var(--space-2) 0 0;
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap .auth-input {
  padding-right: 5.5rem;
}

.auth-password-toggle {
  position: absolute;
  right: var(--space-2);
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  padding: var(--space-2);
}

.auth-form-meta {
  text-align: center;
  font-size: 0.875rem;
  margin: 0;
}

.auth-form-switch {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: var(--space-6);
}

.auth-legal {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.auth-check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-check input {
  margin-top: 0.2rem;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.auth-check a {
  color: var(--forest);
  font-weight: 700;
}

/* OTP */

.auth-otp-cells {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-4) 0;
}

.auth-otp-cell {
  width: 2.75rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.auth-otp-cell:focus {
  border-color: var(--forest);
  outline: 3px solid var(--lime-soft);
}

.auth-otp-label {
  font-weight: 700;
  font-size: 0.875rem;
}

.auth-otp-meta {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.auth-inline-form {
  margin-top: var(--space-4);
}

.auth-details {
  margin-top: var(--space-6);
  font-size: 0.875rem;
}

.auth-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
}

/* Product pick */

.auth-product-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.auth-product-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.auth-product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-product-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-product-card.is-selected .auth-product-card-body,
.auth-product-card input:focus-visible + .auth-product-card-body,
.auth-product-card input:checked + .auth-product-card-body {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.auth-product-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.auth-product-name {
  font-weight: 800;
  font-size: 1.0625rem;
}

.auth-form-card-status {
  text-align: center;
}