/* ============================================================
   FinTrack — Auth Pages
   ============================================================ */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
}

/* Left panel */
.auth-panel-left {
  flex: 1;
  background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 60%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
}

.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
}

.auth-left-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  color: #fff;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
  text-decoration: none;
}

.auth-brand .brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.auth-brand .brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-left-content h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.auth-left-content h1 .highlight {
  background: linear-gradient(135deg, #6366F1, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-content .desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.auth-features li .check {
  width: 22px; height: 22px;
  background: rgba(16,185,129,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: #10B981;
  flex-shrink: 0;
}

/* Floating mini cards on left panel */
.auth-float-cards {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-mini-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-mini-card .mini-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.auth-mini-card .mini-info .title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.auth-mini-card .mini-info .value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Right panel (form) */
.auth-panel-right {
  width: 480px;
  min-height: 100vh;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

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

.auth-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form elements */
.auth-input-group {
  position: relative;
  margin-bottom: 16px;
}

.auth-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.auth-input-group .input-icon {
  position: absolute;
  bottom: 0;
  left: 14px;
  height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.auth-input-group input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  transition: all 0.2s;
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.auth-input-group .toggle-pass {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 44px;
  width: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  font-size: 15px;
  transition: color 0.2s;
}

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

/* Remember me */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-secondary);
}

.auth-options input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-options a {
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
}

/* Submit button */
.btn-auth {
  width: 100%;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-auth:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

.btn-auth:active { transform: none; }

.btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 24px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

/* Input validation states */
.auth-input-group input.is-invalid {
  border-color: var(--danger);
  background: var(--danger-light);
}

.auth-input-group input.is-valid {
  border-color: var(--success);
}

.auth-error-msg {
  font-size: 11.5px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.auth-input-group input.is-invalid ~ .auth-error-msg { display: block; }

/* Password strength */
.pass-strength {
  margin-top: 8px;
}

.pass-strength .bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pass-strength .bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.pass-strength .bar.active.weak   { background: var(--danger); }
.pass-strength .bar.active.fair   { background: var(--warning); }
.pass-strength .bar.active.good   { background: var(--info); }
.pass-strength .bar.active.strong { background: var(--success); }

.pass-strength .label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .auth-panel-left  { display: none; }
  .auth-panel-right { width: 100%; min-height: 100vh; }
}

@media (max-width: 480px) {
  .auth-panel-right { padding: 32px 24px; }
}
