/* ════════════════════════════════════════════════════
   BraidsTribe – auth.css
   Authentication page styles
   ════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   Auth Page Layout
───────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fdf5f9 0%, #f8f0ff 50%, #f0f7ff 100%);
}

.site-header-simple {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container {
  display: flex;
  max-width: 960px;
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   Auth Card (Form Side)
───────────────────────────────────────────────────── */
.auth-card {
  flex: 1;
  padding: 48px;
  max-width: 480px;
}

/* Tab Switcher */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: #333;
}

.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Auth Header */
.auth-header {
  margin-bottom: 28px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.auth-header p {
  font-size: 15px;
  color: #666;
}

/* ─────────────────────────────────────────────────────
   Form Elements
───────────────────────────────────────────────────── */
.auth-form {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
  background: #fafafa;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(252,70,170,0.1);
}

.form-group input::placeholder {
  color: #aaa;
}

/* Password Field */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: #666;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.strength-weak { width: 33%; background: #ef4444; }
.strength-medium { width: 66%; background: #f59e0b; }
.strength-strong { width: 100%; background: #22c55e; }

.strength-text {
  font-size: 12px;
  font-weight: 500;
}

.strength-weak + .strength-text { color: #ef4444; }
.strength-medium + .strength-text { color: #f59e0b; }
.strength-strong + .strength-text { color: #22c55e; }

/* Form Options Row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.terms-checkbox {
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────────
   Account Type Selector
───────────────────────────────────────────────────── */
.account-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.account-type-option {
  flex: 1;
  cursor: pointer;
}

.account-type-option input {
  display: none;
}

.account-type-card {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
  background: #fafafa;
}

.account-type-card svg {
  color: #999;
  margin-bottom: 8px;
}

.account-type-card strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.account-type-card span {
  font-size: 12px;
  color: #888;
}

.account-type-option input:checked + .account-type-card {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(252,70,170,0.05), rgba(154,103,234,0.05));
}

.account-type-option input:checked + .account-type-card svg {
  color: var(--primary);
}

.account-type-option input:checked + .account-type-card strong {
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────
   Error & Success Messages
───────────────────────────────────────────────────── */
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────── */
.btn-full {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #666;
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────
   Auth Visual (Right Side)
───────────────────────────────────────────────────── */
.auth-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  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.05'%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");
  animation: bgMove 30s linear infinite;
}

@keyframes bgMove {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(30px) translateY(30px); }
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 320px;
}

.auth-visual-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-visual-content p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 32px;
}

.auth-visual-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.av-stat {
  text-align: center;
}

.av-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.av-stat span {
  font-size: 12px;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────
   Stylist Onboarding Step 2
───────────────────────────────────────────────────── */
.onboarding-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(252,70,170,.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.required-star {
  color: var(--primary);
}

.field-hint {
  font-weight: 400;
  color: #aaa;
  font-size: 12px;
}

/* Skills chips */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.skill-chip {
  padding: 7px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}

.skill-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.skill-chip.selected {
  background: linear-gradient(135deg, rgba(252,70,170,.12), rgba(154,103,234,.12));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Textarea */
#ob-bio {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fafafa;
  resize: vertical;
  transition: all .2s;
  color: #333;
}

#ob-bio:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(252,70,170,.1);
}

#ob-bio::placeholder {
  color: #aaa;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
}

/* Skip button */
.btn-skip {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  padding: 8px;
  transition: color .2s;
}

.btn-skip:hover {
  color: #666;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────
   Auth Footer
───────────────────────────────────────────────────── */
.auth-footer {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.auth-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-footer-links {
  display: flex;
  gap: 20px;
}

.auth-footer-links a {
  color: #666;
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-visual {
    display: none;
  }
  
  .auth-container {
    max-width: 440px;
  }
}

@media (max-width: 600px) {
  .auth-main {
    padding: 20px 16px;
  }
  
  .auth-container {
    border-radius: 16px;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .account-type-selector {
    flex-direction: column;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .auth-footer .container {
    flex-direction: column;
    gap: 12px;
  }
}
