/* ============================================================
   AUTH PAGE STYLES
   ============================================================ */

body.auth-body {
  overflow: hidden;
  height: 100vh;
  background: var(--bg-base);
}

/* ─── Background ─────────────────────────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,164,101,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,101,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,164,101,0.12) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.auth-bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  bottom: -150px;
  right: 30%;
}

/* ─── Layout ─────────────────────────────────────────────── */
.auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
}

/* ─── Left Branding Panel ────────────────────────────────── */
.auth-branding {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,164,101,0.04) 0%, transparent 60%);
}

.auth-branding-inner {
  position: relative;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.auth-logo-icon svg {
  width: 26px;
  height: 26px;
  color: #000;
}

.auth-logo-text {
  display: flex;
  flex-direction: column;
}

.auth-logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}

.auth-logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* Hero text */
.auth-hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.auth-hero-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-feature-icon svg,
.auth-feature-icon i {
  width: 18px !important;
  height: 18px !important;
}

.auth-feature-icon.gold {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.auth-feature-icon.emerald {
  background: var(--emerald-glow);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.25);
}

.auth-feature-icon.purple {
  background: rgba(139,92,246,0.1);
  color: #8B5CF6;
  border: 1px solid rgba(139,92,246,0.2);
}

.auth-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.auth-feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Testimonial */
.auth-testimonial {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.auth-testimonial::before {
  content: '"';
  position: absolute;
  top: -14px;
  left: 20px;
  font-size: 60px;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  opacity: 0.6;
}

.auth-testimonial-stars {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.auth-testimonial p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-testimonial-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.auth-testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-testimonial-company {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Right Form Panel ───────────────────────────────────── */
.auth-form-panel {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-form-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Input with icon */
.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

.input-icon i,
.input-icon svg {
  width: 16px;
  height: 16px;
}

.form-input.with-icon {
  padding-left: 40px;
}

.form-input.with-action {
  padding-right: 44px;
}

.input-action {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition);
  background: none;
  border: none;
}

.input-action:hover { color: var(--text-secondary); }

.input-action i,
.input-action svg {
  width: 16px;
  height: 16px;
}

/* Forgot link in label */
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition);
}

.forgot-link:hover { color: var(--gold-light); }

/* Inline row */
.form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Custom checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  width: 4px;
  height: 8px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Full width button */
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

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

/* Contact links */
.auth-contacts {
  display: flex;
  gap: 8px;
}

.auth-contact-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.auth-contact-link:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

.auth-contact-link i,
.auth-contact-link svg {
  width: 15px;
  height: 15px;
}

/* Error block */
.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
  color: var(--status-danger);
  font-size: 14px;
  animation: fadeIn 0.2s ease;
}

.auth-error i,
.auth-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer note */
.auth-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-footer-note i,
.auth-footer-note svg {
  width: 14px;
  height: 14px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  body.auth-body { overflow-y: auto; }
  .auth-container { flex-direction: column; height: auto; min-height: 100vh; }
  .auth-branding { flex: none; border-right: none; border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .auth-form-panel { flex: none; padding: 32px 24px; }
  .auth-hero-text h1 { font-size: 28px; }
}
