/**
 * Auth Forms CSS
 * Shared styles for login, forgot-password, reset-password pages
 */

/* Base */
.login-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background: #fff;
}

/* Header */
.login-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  z-index: 100;
}

.logo-dark { display: block; }
.logo-white { display: none; }
.login-header .logo img { height: 36px; width: auto; }

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: #1b9363; }

@media (min-width: 992px) {
  .logo-dark { display: none; }
  .logo-white { display: block; }
  .back-link { color: rgba(255,255,255,0.7); }
  .back-link:hover { color: #fff; }
}

/* Main Layout */
.login-main {
  height: 100vh;
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100vh;
}

/* Left Branded Panel */
.login-branded {
  display: none;
  width: 42%;
  background: linear-gradient(160deg, #0f766e 0%, #1b9363 50%, #22c55e 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.branded-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.15);
  top: -80px;
  right: -80px;
}

.bg-shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(34,197,94,0.3);
  bottom: 10%;
  left: -60px;
  animation-delay: -7s;
}

.bg-shape-3 {
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.1);
  top: 50%;
  right: 15%;
  animation-delay: -14s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.03); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.branded-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 340px;
  margin: 0 auto;
}

/* Badge */
.branded-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  width: fit-content;
}

.branded-badge iconify-icon {
  font-size: 14px;
  color: #86efac;
}

.branded-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.branded-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.feature-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon iconify-icon {
  font-size: 17px;
  color: #fff;
}

.feature-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1px;
}

.feature-content p {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* Stats Row */
.branded-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* Info Box */
.branded-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 14px;
  border-radius: 10px;
}

.branded-info-box iconify-icon {
  font-size: 18px;
  color: #86efac;
  flex-shrink: 0;
  margin-top: 1px;
}

.branded-info-box p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 992px) {
  .login-branded { display: flex; align-items: center; }
}

@media (min-width: 1200px) {
  .login-branded { width: 40%; padding: 2.5rem; }
  .branded-title { font-size: 1.75rem; }
  .branded-inner { max-width: 360px; }
}

@media (min-width: 1400px) {
  .login-branded { width: 42%; }
}

/* Right Form Panel */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
}

.login-form-inner.register-form-inner {
  max-width: 460px;
  margin: auto 0;
  padding: 1.5rem 0;
}

.form-header {
  margin-bottom: 1.25rem;
}

.form-header h1 + p {
  font-size: 13px;
  color: #6b7280;
}

.form-header h1 + p a {
  color: #1b9363;
  font-weight: 500;
  text-decoration: none;
}

.form-header h1 + p a:hover {
  text-decoration: underline;
}

.form-header.text-center {
  text-align: center;
}

.form-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-icon iconify-icon {
  font-size: 28px;
  color: #1b9363;
}

.form-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

/* Alerts */
.login-page .alert,
.auth-page .alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.login-page .alert iconify-icon,
.auth-page .alert iconify-icon {
  font-size: 18px;
}

.alert-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.alert-info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Form */
.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 14px;
  color: #1b9363;
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder {
  color: #9ca3af;
}

.login-form input:focus {
  outline: none;
  border-color: #1b9363;
  box-shadow: 0 0 0 3px rgba(27, 147, 99, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 3rem;
}

.toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-btn:hover { color: #1b9363; }
.toggle-btn iconify-icon { font-size: 20px; }

/* Checkbox */
.checkbox-group {
  margin-bottom: 1.5rem !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: #1b9363;
  cursor: pointer;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1b9363;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit iconify-icon {
  font-size: 18px;
}

.btn-submit:hover {
  background: #158055;
}

/* Footer */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
  color: #6b7280;
}


.form-footer a {
  color: #1b9363;
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover { text-decoration: underline; }

.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1b9363;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.back-to-login:hover {
  color: #158055;
}

.back-to-login iconify-icon {
  font-size: 18px;
}

/* Turnstile placeholder */
.cf-turnstile {
  margin-bottom: 8px;
  min-height: 65px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cf-turnstile:has(iframe) {
  background: transparent;
  border-color: transparent;
}

.turnstile-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
}

/* Form Text */
.login-form .form-text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

/* Submit Button States */
.btn-submit {
  position: relative;
  transition: background 0.2s, opacity 0.2s;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.loading {
  pointer-events: none;
}

.btn-submit .btn-text,
.btn-submit .btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: flex;
}

/* Loading Spinner */
@keyframes auth-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

/* ========== REGISTRATION WIZARD ========== */

/* Progress Bar */
.register-progress {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: #1b9363;
  color: #fff;
}

.progress-step.completed {
  background: #1b9363;
  color: #fff;
}

.progress-step.pending {
  background: #e5e7eb;
  color: #9ca3af;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  transition: background 0.3s ease;
}

.progress-line.completed {
  background: #1b9363;
}

/* Wizard Steps */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

/* Form Row */
.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-group {
  flex: 1;
}

/* Register form uses same input styles as login */
.register-form .form-group {
  margin-bottom: 10px;
}

.register-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="tel"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.register-form input::placeholder {
  color: #9ca3af;
}

.register-form input:focus {
  outline: none;
  border-color: #1b9363;
  box-shadow: 0 0 0 3px rgba(27, 147, 99, 0.12);
}

.register-form input.input-error {
  border-color: #dc2626;
}

.required {
  color: #dc2626;
}

/* Field Errors */
.field-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

/* Wizard Navigation */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.wizard-nav-spacer {
  flex: 1;
}

.btn-wizard-back {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.875rem;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wizard-back:hover {
  color: #374151;
  border-color: #9ca3af;
}

.btn-wizard-back iconify-icon {
  font-size: 18px;
}

.btn-wizard-next {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1b9363;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-wizard-next:hover:not(.not-ready) {
  background: #158055;
}

.btn-wizard-next.not-ready {
  background: #d1d5db;
  cursor: default;
}

.btn-wizard-next iconify-icon {
  font-size: 18px;
}

/* Tag Input */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  min-height: 36px;
  align-items: center;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tag-input-container:focus-within {
  border-color: #1b9363;
  box-shadow: 0 0 0 3px rgba(27, 147, 99, 0.12);
}

.tag-input-field {
  border: none !important;
  outline: none !important;
  padding: 4px 2px !important;
  font-size: 14px !important;
  flex: 1;
  min-width: 100px;
  box-shadow: none !important;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 13px;
  color: #166534;
  white-space: nowrap;
}

.tag-remove {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.tag-remove:hover {
  color: #dc2626;
}

/* Suggestion Dropdowns (Dashboard Style) */
@keyframes suggestFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.register-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1050;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  margin-top: 4px;
}

.register-suggestions.show {
  display: block;
  animation: suggestFadeIn 0.2s ease;
}

.suggest-item {
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.suggest-item:hover {
  background: rgba(27, 147, 99, 0.06);
}

.suggest-item iconify-icon {
  color: #64748b;
  font-size: 16px;
  flex-shrink: 0;
}

.suggest-text {
  flex: 1;
  min-width: 0;
}

.suggest-main {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}

.suggest-sub {
  font-size: 12px;
  color: #64748b;
}

/* ========== VERIFY EMAIL ========== */

/* Code Inputs */
.verify-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.verify-code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: #1b9363;
}

.verify-code-input:focus {
  border-color: #1b9363;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 147, 99, 0.12);
}

/* Verify Error/Success */
.verify-error {
  text-align: center;
  font-size: 14px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
}

.verify-error-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.verify-error-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Resend Section */
.resend-section {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.resend-text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.btn-resend {
  background: none;
  border: none;
  color: #1b9363;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-resend:hover:not(:disabled) {
  background: #f0fdf4;
}

.btn-resend:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.resend-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

/* Verify form specific */
.verify-form .form-header {
  margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 991px) {
  .login-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: calc(env(safe-area-inset-top, 0px) + 0.6rem) 0.9rem 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e7edf3;
    box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: calc(env(safe-area-inset-top, 0px) + 3.3rem);
  }

  .login-page {
    background: #f5f7fb;
  }

  .logo-white {
    display: none !important;
  }

  .logo-dark,
  .login-header .logo-dark {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .login-header .logo img {
    height: 28px;
  }

  .back-link {
    justify-content: center;
    gap: 0;
    height: 34px;
    width: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #dbe4ee;
    background: #fff;
    color: #475569;
    font-size: 0;
    flex-shrink: 0;
  }

  .back-link iconify-icon {
    font-size: 1.05rem;
  }

  .back-link:hover {
    color: #1b9363;
    border-color: #bfe8d3;
    background: #f4fdf8;
  }

  .login-main {
    height: auto;
    min-height: 100vh;
    padding-top: 0;
    overflow: visible;
  }

  .login-container {
    height: auto;
    min-height: 100vh;
  }

  .login-form-panel {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.25rem;
  }

  .login-form-inner,
  .login-form-inner.register-form-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 0.95rem 1.1rem;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 16px;
    box-shadow: 0 16px 34px -30px rgba(15, 23, 42, 0.42);
  }

  .form-header {
    margin-bottom: 1rem;
  }

  .form-header h1 {
    font-size: 1.2rem;
    line-height: 1.28;
    margin-bottom: 0.35rem;
  }

  .form-header h1 + p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .login-form .form-group {
    margin-bottom: 0.95rem;
  }

  .login-form label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .login-form input[type="email"],
  .login-form input[type="password"],
  .login-form input[type="text"],
  .register-form input[type="email"],
  .register-form input[type="password"],
  .register-form input[type="text"],
  .register-form input[type="tel"] {
    min-height: 44px;
    padding: 0.68rem 0.85rem;
    font-size: 14px;
    border-radius: 10px;
  }

  .password-field input {
    padding-right: 2.8rem;
  }

  .toggle-btn {
    width: 2.75rem;
  }

  .btn-submit {
    min-height: 46px;
    border-radius: 10px;
    font-size: 14px;
  }

  .register-progress {
    margin-bottom: 12px;
    padding: 0;
  }

  .progress-step {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .verify-code-inputs {
    gap: 8px;
  }

  .verify-code-input {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }

  .wizard-nav {
    margin-top: 12px;
    gap: 10px;
  }

  .btn-wizard-back,
  .btn-wizard-next {
    min-height: 42px;
    border-radius: 10px;
  }

  .login-form-panel:has(.register-form-inner) {
    padding-top: 0.85rem;
  }
}

@media (max-width: 420px) {
  .login-header {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .login-header .logo img {
    height: 25px;
  }

  .back-link {
    height: 32px;
    width: 32px;
  }

  .login-form-panel {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .login-form-inner,
  .login-form-inner.register-form-inner {
    padding: 0.9rem 0.8rem 1rem;
    border-radius: 14px;
  }
}

@media (min-width: 992px) {
  .login-form-panel {
    padding: 2rem;
  }

  /* Register form-panel: don't center vertically, allow scroll from top */
  .login-form-panel:has(.register-form-inner) {
    align-items: stretch;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}
