/* ============================================================
   Choply — Auth Pages (auth.css)
   ============================================================ */

.auth-container {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  margin-top: calc(-1 * var(--navbar-h));
  padding-top: var(--navbar-h);
}

/* Split-screen brand panel */
.auth-brand-panel {
  flex: 1.2;
  background: linear-gradient(135deg, var(--secondary) 0%, #171738 50%, #0c0c16 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.15), transparent 60%);
  pointer-events: none;
}

.auth-brand-title {
  font-family: var(--font-display);
  font-weight: var(--font-black);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.auth-brand-tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: var(--space-8);
}

/* Feature checkmarks in brand panel */
.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.85);
}

.auth-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Form Panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--success-subtle);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Social Logins */
.auth-social-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.auth-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-social-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider:not(:empty)::before { margin-right: 16px; }
.auth-divider:not(:empty)::after { margin-left: 16px; }

/* Custom Form elements */
.auth-form-group {
  margin-bottom: var(--space-4);
  position: relative;
}

/* Wraps just the input + its icons so absolute-positioned icons center
   within the input's own height (not across the group's extra content
   like password-strength meters/labels below the field). */
.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 14px 50px 14px 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  outline: none;
  transition: all var(--transition-fast);
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  z-index: 2;
  transition: color var(--transition-fast);
}

.auth-input-toggle:hover {
  color: var(--text-primary);
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
}

.auth-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  margin-bottom: var(--space-5);
}

/* Password strength bar */
.pw-strength-container {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.pw-strength-bar.weak { background: var(--danger); }
.pw-strength-bar.fair { background: var(--warning); }
.pw-strength-bar.strong { background: var(--success); }

/* responsive */
@media (max-width: 991px) {
  .auth-brand-panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-container {
    min-height: auto;
  }
  .auth-form-panel {
    padding: 16px;
    min-height: calc(100vh - var(--navbar-h));
    align-items: flex-start;
    padding-top: 24px;
  }
  .auth-card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }
  .auth-title {
    font-size: var(--text-xl);
  }
  .auth-social-row {
    flex-wrap: wrap;
  }
  .auth-social-btn {
    min-width: calc(50% - 8px);
    padding: 10px 8px;
    font-size: 12px;
  }
  .auth-form-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
