/* OHSOME Storefront Customer Authentication Styles */
:root {
  --auth-yellow: #FFD12F;
  --auth-yellow-hover: #F2BC17;
  --auth-ink: #171717;
  --auth-surface: #FFFFFF;
  --auth-bg: #F7F7F5;
  --auth-border: #E7E7E4;
  --auth-text-main: #202020;
  --auth-text-muted: #6B6B68;
  --auth-text-light: #92928D;
  --auth-success: #15803D;
  --auth-success-bg: #DCFCE7;
  --auth-danger: #B91C1C;
  --auth-danger-bg: #FEE2E2;
  --auth-radius-card: 22px;
  --auth-radius-input: 14px;
  --auth-radius-pill: 999px;
  --auth-shadow: 0 12px 36px rgba(23, 23, 23, 0.07);
}

.auth-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 80px;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 209, 47, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(74, 201, 166, 0.1) 0%, transparent 45%),
    var(--auth-bg);
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-shadow);
  padding: 36px 32px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: 20px 12px 90px;
    align-items: flex-start;
  }
  .auth-card {
    padding: 26px 18px;
    border-radius: 18px;
  }
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}

.auth-back-link:hover {
  color: var(--auth-ink);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--auth-radius-pill);
  background: #FFF9DB;
  border: 1px solid #FFE066;
  color: #7A5700;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--auth-ink);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--auth-text-muted);
  line-height: 1.45;
}

/* Nav Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1F3F5;
  padding: 5px;
  border-radius: var(--auth-radius-pill);
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--auth-text-muted);
  text-decoration: none;
  border-radius: var(--auth-radius-pill);
  transition: all 0.2s ease;
  min-height: 40px;
}

.auth-tab-btn.active {
  background: var(--auth-yellow);
  color: var(--auth-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn:not(.active):hover {
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--auth-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--auth-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-input);
  background: #FFFFFF;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input-wrapper.has-toggle .auth-input {
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--auth-text-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.auth-password-toggle:hover {
  color: var(--auth-ink);
}

.auth-hint {
  font-size: 0.78rem;
  color: var(--auth-text-light);
  margin-top: 2px;
}

/* Alert Message */
.auth-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.auth-message.is-error {
  display: flex;
  background: var(--auth-danger-bg);
  border: 1px solid #FCA5A5;
  color: var(--auth-danger);
}

.auth-message.is-success {
  display: flex;
  background: var(--auth-success-bg);
  border: 1px solid #86EFAC;
  color: var(--auth-success);
}

/* Button */
.auth-submit-btn {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  background: var(--auth-yellow);
  color: var(--auth-ink);
  border: none;
  border-radius: var(--auth-radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(255, 209, 47, 0.4);
}

.auth-submit-btn:hover {
  background: var(--auth-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 209, 47, 0.5);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Quick Demo Pill */
.auth-demo-box {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px dashed #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-demo-info {
  text-align: left;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
}

.auth-demo-info strong {
  display: block;
  color: var(--auth-ink);
  font-size: 0.82rem;
}

.auth-demo-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--auth-ink);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.auth-demo-btn:hover {
  background: var(--auth-yellow);
  border-color: var(--auth-yellow);
}

.auth-footer-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--auth-text-muted);
}

.auth-footer-links a {
  color: #2563EB;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-sublink {
  font-size: 0.82rem;
  color: var(--auth-text-muted);
  text-decoration: none;
  font-weight: 600;
}

.auth-sublink:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

/* ==========================================================
   MULTI-STEP REGISTRATION WIZARD STYLES
   ========================================================== */
.register-stepper {
  margin-bottom: 24px;
}
.stepper-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.stepper-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD12F 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.stepper-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #9CA3AF;
  transition: all 0.25s ease;
  flex: 1;
  text-align: center;
}
.step-item .step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px solid #E5E7EB;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.25s ease;
}
.step-item .step-check { display: none; }
.step-item.active {
  color: #111315;
}
.step-item.active .step-circle {
  background: #FFD12F;
  border-color: #111315;
  color: #111315;
  box-shadow: 0 0 0 4px rgba(255, 209, 47, 0.25);
}
.step-item.completed {
  color: #059669;
}
.step-item.completed .step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}
.step-item.completed .step-num { display: none; }
.step-item.completed .step-check { display: block; font-size: 0.95rem; }
.step-item .step-title {
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

/* Step Section Layout & Animations */
.step-section {
  animation: stepFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  gap: 16px;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.step-header-banner {
  background: #FFFDF0;
  border: 1px solid #FEF08A;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 4px;
}
.step-header-banner .step-badge-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}
.step-header-banner .step-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111315;
  margin: 0 0 2px;
}
.step-header-banner .step-sub-text {
  font-size: 0.8rem;
  color: #4B5563;
  margin: 0;
  line-height: 1.35;
}

/* Step Buttons Row */
.step-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: 8px;
}
.btn-step-prev {
  height: 48px;
  border-radius: var(--auth-radius-pill);
  background: #F3F4F6;
  border: 1.5px solid #E5E7EB;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-step-prev:hover {
  background: #E5E7EB;
  color: #111315;
}
.btn-step-next {
  height: 48px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-yellow);
  border: none;
  color: var(--auth-ink);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 209, 47, 0.4);
  transition: all 0.15s ease;
  width: 100%;
}
.btn-step-next:hover {
  background: var(--auth-yellow-hover);
  transform: translateY(-1px);
}

/* Summary Review Card */
.register-summary-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px dashed #E5E7EB;
  padding-bottom: 8px;
}
.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.summary-label {
  color: #6B7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.summary-val {
  color: #111315;
  font-weight: 750;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 750;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 999px;
}
.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #4B5563;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  margin-top: 4px;
}
.auth-checkbox-label input {
  margin-top: 2px;
  accent-color: #ca8a04;
  flex-shrink: 0;
}
.auth-checkbox-label a {
  color: #2563EB;
  text-decoration: underline;
}
