/* ============================================================
   DİM SİSTEM — AUTH CSS (auth.css)
   Yalnız login.html istifadə edir.
   ============================================================ */

/* ── LAYOUT ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── SOL PANEL ──────────────────────────────────────────── */
.auth-left {
  flex: 1;
  background: linear-gradient(145deg, #09142a 0%, #0f2460 45%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

/* Dekorativ dairələr */
.auth-left::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  top: -120px; left: -120px;
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -90px; right: -90px;
  pointer-events: none;
}

/* Brand */
.auth-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 56px;
  position: relative; z-index: 1;
  align-self: flex-start;
}
.auth-brand-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.auth-brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.auth-brand-sub  { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* Mətn bölməsi */
.auth-left-body {
  position: relative; z-index: 1;
  text-align: left; width: 100%; max-width: 400px;
}
.auth-left-title {
  font-size: 30px; font-weight: 800;
  color: #fff; line-height: 1.25;
  margin-bottom: 14px; letter-spacing: -.02em;
}
.auth-left-desc {
  font-size: 14px; color: rgba(255,255,255,.55);
  line-height: 1.75; max-width: 360px;
}

/* Feature siyahısı */
.auth-features {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 40px;
}
.auth-feat {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 13px 16px;
}
.auth-feat-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #93c5fd; flex-shrink: 0;
}
.auth-feat-title { font-size: 13px; font-weight: 700; color: #fff; }
.auth-feat-sub   { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ── SAĞ PANEL ──────────────────────────────────────────── */
.auth-right {
  width: 480px; flex-shrink: 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 48px;
}

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

.auth-box-title {
  font-size: 24px; font-weight: 800;
  color: var(--tx); letter-spacing: -.02em;
  margin-bottom: 5px;
}
.auth-box-sub {
  font-size: 13.5px; color: var(--tx-m);
  margin-bottom: 30px; line-height: 1.6;
}

/* ── FORM ───────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 5px; }

.auth-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--tx-m);
}

.auth-label span {
  color: var(--danger)
}

/* Input wrapper — icon + input + sağ icon */
.auth-input-wrap { position: relative; }

.auth-input-left-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--tx-l); font-size: 16px;
  pointer-events: none; z-index: 1;
}

.auth-input {
  font-family: var(--font);
  font-size: 14px; color: var(--tx);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 11px 42px;   /* sol + sağ icon boşluğu */
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.11);
}
.auth-input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.09);
}
.auth-input.is-success { border-color: var(--success); }
.auth-input::placeholder { color: #c4cdd8; }

/* Sağ tərəf — ya validasiya ikonu, ya şifrə toggle */
.auth-input-right {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; background: none; border: none;
  cursor: pointer; color: var(--tx-l);
  transition: color .15s; padding: 0; line-height: 1;
  display: flex; align-items: center;
}
.auth-input-right:hover { color: var(--tx-m); }
.auth-input-right.ok  { color: var(--success); cursor: default; }
.auth-input-right.err { color: var(--danger);  cursor: default; }

/* Field mesajı */
.auth-field-msg {
  font-size: 11.5px; min-height: 16px;
  display: flex; align-items: center; gap: 4px;
  color: var(--tx-m);
}
.auth-field-msg.error   { color: var(--danger); }
.auth-field-msg.success { color: var(--success); }

/* ── "MƏNI YADDA SAXLA" ─────────────────────────────────── */
.auth-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--tx-m); cursor: pointer;
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--primary); cursor: pointer;
  -webkit-appearance: auto; appearance: auto;
  margin: 0;
}

/* ── GİRİŞ DÜYMƏSİ ─────────────────────────────────────── */
.auth-submit {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--r);
  font-family: var(--font);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .2s, transform .1s;
}
.auth-submit:hover   { background: var(--primary-h); }
.auth-submit:active  { transform: scale(.98); }
.auth-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ── XƏTA BANNER ────────────────────────────────────────── */
.auth-alert {
  display: none;
  align-items: center; gap: 9px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.5;
  margin-bottom: 4px;
}
.auth-alert.show { display: flex; }
.auth-alert.error {
  background: var(--danger-lt);
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.auth-alert.success {
  background: var(--success-lt);
  border: 1px solid #86efac;
  color: #166534;
}
.auth-alert i { font-size: 16px; flex-shrink: 0; }

/* ── SPİNNER ────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ALT MƏTN ───────────────────────────────────────────── */
.auth-footer {
  margin-top: 32px; text-align: center;
  font-size: 12px; color: var(--tx-l);
}

/* ── SİLKƏLƏMƏ ANİMASİYASI ─────────────────────────────── */
@keyframes shake {
  0%,100% { transform: translateX(0);  }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX( 8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX( 5px); }
}
.shake { animation: shake .4s ease; }

/* ── RESPONSİV ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left  { display: none; }
  .auth-right { width: 100%; padding: 40px 24px; }
}


body { background: red !important; }