/* Auth Pages CSS */
.auth-body { background: var(--bg-secondary); min-height: 100vh; }

.auth-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left Panel */
.auth-left {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  padding: 2.5rem; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left::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.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-logo { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.auth-logo .logo-icon { background: rgba(255,255,255,0.2); }
.auth-logo .logo-text, .auth-logo .logo-text strong { color: white; }

.auth-left-content {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  position: relative; max-width: 380px;
}
.auth-left-content h2 { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 0.75rem; }
.auth-left-content p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; margin-bottom: 2rem; }
.auth-features { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-feature {
  display: flex; align-items: center; gap: 0.625rem;
  color: rgba(255,255,255,0.9); font-size: 0.9375rem;
}
.auth-feature i { color: #86efac; font-size: 1.1rem; }

/* Right Panel */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg);
}
.auth-card { width: 100%; max-width: 420px; }

.auth-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.375rem; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.75rem; }
.auth-subtitle a { color: var(--primary); font-weight: 600; }

/* Alert */
.auth-alert {
  padding: 0.875rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 1.25rem;
}
.auth-alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
[data-theme="dark"] .auth-alert.error { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.2); }
[data-theme="dark"] .auth-alert.success { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.2); }

/* Social Button */
.btn-social {
  width: 100%; padding: 0.75rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.625rem; transition: all 0.2s;
}
.btn-social:hover { border-color: var(--primary); background: rgba(79,70,229,0.04); }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; color: var(--text-light); font-size: 0.8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.forgot-link { font-size: 0.8125rem; font-weight: 500; color: var(--primary); }

.input-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 0.875rem; background: var(--bg);
  transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--primary); }
.input-wrap > i { color: var(--text-light); font-size: 1rem; flex-shrink: 0; }
.input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--text); font-size: 0.9375rem; padding: 0.6875rem 0;
}
.toggle-pass {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); padding: 0; font-size: 1rem; flex-shrink: 0;
}
.toggle-pass:hover { color: var(--text); }

/* Password Strength */
.password-strength { display: flex; align-items: center; gap: 0.625rem; }
.strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 99px; transition: all 0.3s; }
#strengthText { font-size: 0.8rem; font-weight: 600; min-width: 48px; }

/* Submit Button */
.btn-auth {
  width: 100%; padding: 0.8125rem; background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
  min-height: 50px;
}
.btn-auth:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-terms { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 1rem; }
.auth-terms a { color: var(--primary); }

/* Loading */
.auth-loading {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 1.5rem; align-items: flex-start; padding-top: 3rem; }
}
