/* ── Auth layout ───────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #f5f6f8);
  padding: 24px 16px;
  position: relative;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 36px;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  color: #1a1a1a;
}

.auth-sub {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #666;
  margin: 0 0 32px;
  line-height: 1.5;
}

.auth-flash {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #166534;
  margin-bottom: 20px;
}

.auth-flash.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ── Form elements ─────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fafafa;
  color: #1a1a1a;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
  background: #fff;
  transform: translateY(-1px);
}

.form-group .field-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 2px;
}

.form-group input.has-error {
  border-color: #dc2626;
}

/* Seat counter row */
.seat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: #6366f1;
}

.checkbox-label input:checked ~ .checkmark {
  background-color: #6366f1;
  border-color: #6366f1;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.seat-row input[type=number] {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
}

.seat-note {
  font-size: 12px;
  color: #888;
}

/* Product selector */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.product-card-opt {
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}

.product-card-opt input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.product-card-opt:has(input:checked) {
  border-color: #6366f1;
  background: rgba(99, 102, 241, .04);
}

.product-card-opt .pco-name {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.product-card-opt .pco-sub {
  font-size: 11px;
  color: #888;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin: 4px 0;
}

.auth-footer-note {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 24px;
  line-height: 1.4;
}

.auth-footer-note a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.auth-footer-note a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* ── Signup steps indicator ────────────────────────────────────── */
.signup-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.signup-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  color: #aaa;
}

.signup-step.active {
  color: #6366f1;
  font-weight: 600;
}

.signup-step.done {
  color: #22c55e;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.signup-step.active .step-dot {
  background: #6366f1;
  color: #fff;
}

.signup-step.done .step-dot {
  background: #22c55e;
  color: #fff;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: #e5e5e5;
  margin: 0 8px;
}

/* Tablet and desktop - larger card */
@media (min-width: 768px) {
  .auth-card {
    max-width: 480px;
    padding: 56px 48px 48px;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .auth-body {
    padding: 16px 12px;
  }

  .auth-card {
    padding: 32px 24px 28px;
    border-radius: 12px;
  }

  .auth-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 14px 16px;
  }

  .auth-footer-note {
    font-size: 13px;
    margin-top: 20px;
  }

  .product-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signup-steps {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .step-connector {
    width: 1px;
    height: 16px;
    margin: 8px 0;
  }
}