/* ===== PLUZZPAY AUTH PAGES (Login, Signup, Forgot Password) ===== */
/* Brand: Royal Blue #1B3FA0 | Clean white | Professional Nigerian fintech */

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--gray-50);
  font-family: var(--font);
}

/* Split layout */
.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left panel - branding */
.auth-brand-panel {
  flex: 1;
  background: var(--brand-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-brand-content { position: relative; text-align: center; max-width: 380px; }
.auth-brand-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,0.25);
}
.auth-brand-logo img { width: 56px; height: 56px; object-fit: contain; }
.auth-brand-title {
  font-size: 28px; font-weight: 800;
  color: white; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.auth-brand-tagline {
  color: rgba(255,255,255,0.75); font-size: 15px;
  line-height: 1.6; margin-bottom: 40px;
}
.auth-brand-features { text-align: left; }
.auth-feature-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85); font-size: 14px;
  margin-bottom: 16px;
}
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}

/* Right panel - form */
.auth-form-panel {
  width: 480px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px;
  overflow-y: auto;
}
.auth-form-header { margin-bottom: 32px; }
.auth-form-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 14px;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.auth-form-back:hover { color: var(--primary); text-decoration: none; }
.auth-form-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-subtitle { font-size: 14px; color: var(--text-secondary); }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-input {
  width: 100%; height: 48px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0 14px;
  font-size: 14px; color: var(--text-primary);
  background: white;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,63,160,0.1);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

.form-input-icon {
  position: relative;
}
.form-input-icon .form-input { padding-left: 42px; }
.form-input-icon .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: 16px; pointer-events: none;
}
.form-input-icon .input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
.form-input-icon .input-suffix:hover { color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type=checkbox] {
  width: 18px; height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 4px; accent-color: var(--primary);
  cursor: pointer;
}
.form-check label { font-size: 13px; color: var(--gray-700); cursor: pointer; }

.form-forgot {
  font-size: 13px; color: var(--primary); font-weight: 500;
  float: right; margin-top: -18px; margin-bottom: 8px;
}
.form-forgot:hover { text-decoration: underline; }

.btn-primary {
  width: 100%; height: 50px;
  background: var(--brand-blue);
  color: white; font-size: 15px; font-weight: 600;
  border-radius: var(--border-radius);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary .btn-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.btn-primary.loading .btn-spinner { display: block; }
.btn-primary.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--gray-400); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* Password strength meter */
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px; border-radius: 2px;
  background: var(--gray-200); overflow: hidden; margin-bottom: 4px;
}
.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width var(--transition), background var(--transition);
  width: 0%;
}
.strength-text { font-size: 11px; color: var(--text-muted); }

/* Progress steps (signup) */
.auth-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 32px;
}
.auth-step {
  display: flex; flex-direction: column;
  align-items: center; flex: 1; position: relative;
}
.auth-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 16px; left: calc(50% + 16px);
  width: calc(100% - 32px); height: 2px;
  background: var(--gray-200); z-index: 0;
}
.auth-step.completed:not(:last-child)::after { background: var(--primary); }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-200); color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  position: relative; z-index: 1;
  transition: all var(--transition);
}
.auth-step.active .step-circle { background: var(--primary); color: white; }
.auth-step.completed .step-circle { background: var(--success); color: white; }
.step-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.auth-step.active .step-label { color: var(--primary); font-weight: 600; }

/* Step content panels */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Select dropdown */
.form-select {
  width: 100%; height: 48px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0 14px;
  font-size: 14px; color: var(--text-primary);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none;
  transition: all var(--transition);
  outline: none;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,63,160,0.1); }

/* Alert */
.form-alert {
  padding: 12px 16px; border-radius: var(--border-radius-sm);
  font-size: 13px; margin-bottom: 16px; display: none;
  align-items: center; gap: 10px;
}
.form-alert.show { display: flex; }
.form-alert.error { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }
.form-alert.success { background: var(--success-light); color: var(--success-dark); border: 1px solid rgba(22,163,74,0.2); }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel { width: 100%; padding: 32px 24px; min-height: 100vh; }
  .auth-form-header { margin-bottom: 24px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-form-panel { padding: 24px 16px; }
}
