/* Halaman Login & Register — tanpa Tailwind */
.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #030712;
  color: #f8fafc;
  line-height: 1.5;
}

.auth-page a { color: #4ade80; text-decoration: none; }
.auth-page a:hover { text-decoration: underline; }

.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-wrap-wide {
  max-width: 720px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8 !important;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-decoration: none !important;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand p {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  color: #0f172a;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-card .auth-sub {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.auth-field input:not([type="radio"]):not([type="checkbox"]),
.auth-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  outline: none;
}

.auth-field input:focus:not([type="radio"]):not([type="checkbox"]),
.auth-field select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.auth-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 0.5rem;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.auth-submit:active { transform: scale(0.98); }

.auth-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-footer-link a { color: #16a34a; font-weight: 700; text-decoration: none; }

.auth-copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Flash di halaman auth */
.auth-flash {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.auth-flash-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

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

/* Register — paket */
.auth-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.reg-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 560px) {
  .reg-plans { grid-template-columns: repeat(2, 1fr); }
}

.reg-plan {
  position: relative;
  display: block;
  cursor: pointer;
}

.reg-plan input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.reg-plan-box {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.reg-plan input:checked + .reg-plan-box {
  border-color: #22c55e;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.reg-plan-box.popular {
  border-color: #86efac;
}

.reg-plan-pop {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #22c55e;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.reg-plan-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.reg-plan-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #16a34a;
  margin: 0.25rem 0;
}

.reg-plan-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Pilihan cara bayar (Tripay / manual) */
.pay-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pay-opt input[type="radio"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  accent-color: #22c55e;
  cursor: pointer;
}

.pay-opt:has(input:checked) {
  border-color: #22c55e;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.pay-opt span {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.reg-summary {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.reg-summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reg-summary-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.25rem 0;
}

.reg-summary-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #16a34a;
}

.reg-summary-note {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.35rem 0 0;
}

.reg-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.auth-dark-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  color: #f8fafc;
}

.auth-dark-card .auth-section-title { color: #94a3b8; }

.auth-dark-card .auth-field label { color: #cbd5e1; }

.auth-dark-card .auth-field input:not([type="radio"]):not([type="checkbox"]),
.auth-dark-card .auth-field select {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.auth-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.auth-step {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
}

.auth-step.active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
