/* Auth pages — onboarding kit (green / amber / Roboto) */

.auth-body {
  --kit-primary: #22c55e;
  --kit-primary-dark: #16a34a;
  --kit-secondary: #f59e0b;
  --kit-dark: #0f172a;
  --kit-gray: #6b7280;
  --kit-light: #f3f4f6;
  --kit-soft: #e8f9ef;
  --kit-soft-deep: #d1f5de;
  --kit-error: #ef4444;
  --kit-white: #ffffff;

  margin: 0;
  min-height: 100vh;
  background: var(--kit-light);
  font-family: Roboto, system-ui, sans-serif;
  color: var(--kit-dark);
}

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

.auth-promo {
  position: relative;
  min-height: 100vh;
  color: var(--kit-white);
  background:
    linear-gradient(
      155deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.62) 45%,
      rgba(34, 197, 94, 0.45) 100%
    ),
    var(--auth-hero) center / cover no-repeat;
  overflow: hidden;
}

.auth-promo::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 68%);
  pointer-events: none;
}

.auth-promo-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100vh;
  padding: 36px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-promo-brand {
  display: grid;
  gap: 8px;
  color: var(--kit-white);
  text-decoration: none;
  width: fit-content;
}

.auth-promo-brand img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.auth-promo-brand span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.auth-promo-copy h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 14ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-promo-copy h1 em {
  font-style: normal;
  color: var(--kit-primary);
}

.auth-promo-copy p {
  margin: 0 0 28px;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  font-size: 0.98rem;
}

.auth-promo-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-promo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-promo-features span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--kit-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: var(--kit-white);
}

.auth-promo-script {
  margin: 28px 0 0;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--kit-secondary);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(245, 158, 11, 0.08), transparent 28%),
    var(--kit-white);
}

.auth-panel-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.auth-panel-top p {
  margin: 0;
  color: var(--kit-gray);
  font-size: 0.9rem;
}

.auth-panel-top a,
.auth-footnote a,
.auth-link {
  color: var(--kit-primary);
  font-weight: 650;
  text-decoration: none;
}

.auth-panel-top a:hover,
.auth-footnote a:hover,
.auth-link:hover {
  color: var(--kit-primary-dark);
  text-decoration: underline;
}

.auth-card {
  width: min(100%, 420px);
  margin: auto;
  padding: 8px 0 24px;
}

.auth-card-wide {
  width: min(100%, 560px);
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.auth-logo img {
  width: 132px;
  height: auto;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--kit-dark);
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--kit-gray);
  line-height: 1.5;
  font-size: 0.95rem;
}

.auth-error {
  background: #fef2f2;
  color: var(--kit-error);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.auth-success {
  background: var(--kit-soft);
  color: #166534;
  border: 1px solid var(--kit-soft-deep);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

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

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  position: relative;
  display: block;
}

.auth-field-plain {
  display: grid;
  gap: 6px;
}

.auth-field-plain > span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--kit-dark);
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: var(--kit-white);
  padding: 14px 44px 14px 46px;
  font: inherit;
  color: var(--kit-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-plain input {
  padding-left: 14px;
  padding-right: 14px;
}

.auth-field-plain .auth-eye + input,
.auth-field-plain:has(.auth-eye) input {
  padding-right: 44px;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--kit-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kit-gray);
  display: inline-flex;
  pointer-events: none;
}

.auth-field-plain .auth-field-icon {
  display: none;
}

.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--kit-gray);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-eye:hover {
  color: var(--kit-dark);
  background: var(--kit-light);
}

.auth-field-plain .auth-eye {
  top: auto;
  bottom: 8px;
  transform: none;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kit-gray);
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-check input {
  accent-color: var(--kit-primary);
}

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--kit-primary);
  color: var(--kit-white);
  font: inherit;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: var(--kit-primary-dark);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit-secondary {
  background: var(--kit-dark);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.auth-submit-secondary:hover {
  background: #1e293b;
}

.auth-footnote {
  margin: 22px 0 0;
  text-align: center;
  color: var(--kit-gray);
  font-size: 0.9rem;
}

.auth-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kit-primary);
}

.auth-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}

.auth-progress span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--kit-light);
  color: var(--kit-gray);
  font-size: 0.78rem;
  font-weight: 650;
}

.auth-progress span.is-done {
  background: var(--kit-soft);
  color: #166534;
}

.auth-progress span.is-active {
  background: var(--kit-primary);
  color: var(--kit-white);
}

.auth-progress i {
  width: 18px;
  height: 2px;
  background: var(--kit-soft-deep);
  display: inline-block;
}

.auth-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.auth-role-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: var(--kit-white);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-role-card:hover {
  border-color: var(--kit-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.14);
}

.auth-role-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--kit-soft);
  color: var(--kit-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-role-card strong {
  font-size: 1.05rem;
  color: var(--kit-dark);
}

.auth-role-card span {
  color: var(--kit-gray);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-role-card em {
  font-style: normal;
  color: var(--kit-primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
}

.auth-card-partner {
  width: min(100%, 640px);
}

.partner-section {
  display: grid;
  gap: 12px;
  padding: 16px 0 8px;
  border-top: 1px solid #e5e7eb;
}

.partner-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.partner-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.partner-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--kit-primary);
  color: var(--kit-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.partner-section-head h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  color: var(--kit-dark);
}

.partner-section-head p {
  margin: 0;
  color: var(--kit-gray);
  font-size: 0.84rem;
}

.auth-field-plain select,
.auth-field-plain textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: var(--kit-white);
  padding: 14px;
  font: inherit;
  color: var(--kit-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  resize: vertical;
}

.auth-field-plain select:focus,
.auth-field-plain textarea:focus {
  outline: none;
  border-color: var(--kit-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.partner-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 2px 8px;
}

.partner-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: var(--kit-white);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--kit-gray);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.partner-category-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.partner-category-chip.is-selected {
  background: var(--kit-primary);
  border-color: var(--kit-primary);
  color: var(--kit-white);
}

.partner-cover-upload {
  display: block;
  cursor: pointer;
}

.partner-cover-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.partner-cover-preview {
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  border-radius: 16px;
  border: 1px dashed var(--kit-soft-deep);
  background: var(--kit-soft) center / cover no-repeat;
  color: var(--kit-gray);
  padding: 14px;
  font-weight: 600;
}

.partner-cover-preview.has-image {
  color: var(--kit-white);
  border-style: solid;
  border-color: var(--kit-primary);
}

.auth-success-panel {
  background: var(--kit-soft);
  border: 1px solid var(--kit-soft-deep);
  border-radius: 16px;
  padding: 18px;
  color: #166534;
}

.auth-success-panel strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--kit-dark);
}

.auth-success-panel p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.auth-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-success-actions .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0;
}

.places-mount-field .places-input,
.places-mount-field input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: var(--kit-white);
  padding: 14px;
  font: inherit;
  color: var(--kit-dark);
}

.places-mount-field .places-input:focus,
.places-mount-field input[type='text']:focus {
  outline: none;
  border-color: var(--kit-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .auth-promo {
    min-height: 280px;
  }

  .auth-promo-inner {
    min-height: 280px;
    padding: 24px;
  }

  .auth-promo-copy h1 {
    max-width: none;
  }

  .auth-promo-features {
    display: none;
  }

  .auth-promo-script {
    display: none;
  }

  .auth-panel {
    padding: 18px 18px 36px;
  }

  .auth-grid,
  .auth-role-grid {
    grid-template-columns: 1fr;
  }
}
