/* ============ LOGIN — TankhahBot owner dashboard (dark glassmorphism) ============ */
/* Scoped to .tb-login-* only; shares the dashboard design tokens (--tb-*) so the
   login surface stays visually identical to the authenticated panel. */
.tb-login-body {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 20px;
  position: relative; overflow-x: hidden; background: var(--tb-bg, #070b18);
  font-family: 'Vazirmatn', 'Inter', Tahoma, sans-serif;
}
.tb-login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tb-login-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.tb-login-glow-a {
  width: 46vmax; height: 46vmax; top: -16vmax; inset-inline-end: -12vmax;
  background: radial-gradient(circle, rgba(139,124,246,.34), transparent 68%);
  animation: tb-login-float 16s ease-in-out infinite;
}
.tb-login-glow-b {
  width: 38vmax; height: 38vmax; bottom: -14vmax; inset-inline-start: -10vmax;
  background: radial-gradient(circle, rgba(56,189,248,.24), transparent 68%);
  animation: tb-login-float 20s ease-in-out infinite reverse;
}
.tb-login-grid {
  position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 20%, transparent 78%);
}
.tb-login-shell { position: relative; z-index: 1; width: min(100%, 452px); }
.tb-login-card {
  width: 100%; padding: 34px 32px 26px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid var(--tb-border, rgba(255,255,255,.18));
  box-shadow: 0 30px 80px rgba(3,6,18,.62), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  animation: tb-login-rise .5s cubic-bezier(.22,.68,.36,1) both;
}
.tb-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tb-login-mark {
  width: 46px; height: 46px; border-radius: 15px; font-size: 22px;
  box-shadow: 0 10px 26px rgba(139,124,246,.28);
}
.tb-login-brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.tb-login-brand-text strong { color: var(--tb-text, #f2f5fc); font-size: 15px; font-weight: 800; }
.tb-login-brand-text small { color: var(--tb-faint, #6b7490); font-size: 11.5px; }
.tb-login-head { margin-bottom: 24px; }
.tb-login-card h1 {
  margin: 0; color: var(--tb-text, #f2f5fc); font-size: 25px;
  font-weight: 800; letter-spacing: -.2px;
}
.tb-login-subtitle { margin: 9px 0 0; color: var(--tb-muted, #a8b1c7); font-size: 13.5px; line-height: 1.9; }
.tb-login-alert {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 14px;
  border-radius: 14px; font-size: 13px; line-height: 1.85; color: #fecaca;
  background: rgba(239,68,68,.13); border: 1px solid rgba(248,113,113,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); animation: tb-login-shake .32s ease;
}
.tb-login-alert svg { flex: 0 0 auto; margin-top: 3px; }
.tb-login-form { display: grid; gap: 18px; }
.tb-field { display: grid; gap: 8px; }
.tb-field label { color: var(--tb-muted, #a8b1c7); font-size: 12.5px; font-weight: 600; }
.tb-input-wrap { position: relative; display: flex; align-items: center; }
.tb-input-icon {
  position: absolute; inset-inline-start: 14px; display: grid; place-items: center;
  color: var(--tb-faint, #6b7490); pointer-events: none; transition: color .18s ease;
}
.tb-input-wrap input {
  width: 100%; padding: 13px 46px 13px 44px; border-radius: 14px; font: inherit; font-size: 14px;
  color: var(--tb-text, #f2f5fc); background: rgba(9,13,28,.55);
  border: 1px solid var(--tb-border, rgba(255,255,255,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tb-input-wrap input::placeholder { color: rgba(168,177,199,.55); }
.tb-input-wrap input:hover { border-color: rgba(255,255,255,.26); }
.tb-input-wrap input:focus {
  outline: none; background: rgba(9,13,28,.72);
  border-color: rgba(139,124,246,.62); box-shadow: 0 0 0 4px rgba(139,124,246,.16);
}
.tb-input-wrap input:focus ~ .tb-input-icon,
.tb-input-wrap:focus-within .tb-input-icon { color: var(--tb-accent, #8b7cf6); }
.tb-input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: var(--tb-text, #f2f5fc); transition: background-color 9999s;
}
.tb-pass-toggle {
  position: absolute; inset-inline-end: 10px; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--tb-faint, #6b7490);
  transition: color .18s ease, background .18s ease;
}
.tb-pass-toggle:hover { color: var(--tb-text, #f2f5fc); background: rgba(255,255,255,.07); }
.tb-pass-toggle:focus-visible { outline: 2px solid var(--tb-accent, #8b7cf6); outline-offset: 2px; }
.tb-login-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 6px; padding: 14px 18px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: #fff;
  border: 1px solid rgba(139,124,246,.75);
  background: linear-gradient(135deg, #8b7cf6, #6366f1);
  box-shadow: 0 14px 30px rgba(99,102,241,.30), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.tb-login-submit:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 18px 38px rgba(99,102,241,.38);
}
.tb-login-submit:active { transform: translateY(0); }
.tb-login-submit:focus-visible { outline: 2px solid var(--tb-accent, #8b7cf6); outline-offset: 3px; }
.tb-login-submit[disabled] { cursor: progress; opacity: .82; transform: none; }
.tb-btn-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.42); border-top-color: #fff;
  animation: tb-login-spin .7s linear infinite;
}
.tb-login-submit.is-loading .tb-btn-spinner { display: inline-block; }
.tb-login-submit.is-loading .tb-btn-label { opacity: .82; }
.tb-login-hint { margin: -4px 0 0; color: var(--tb-faint, #6b7490); font-size: 11.5px; text-align: center; }
.tb-login-foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07);
  color: var(--tb-faint, #6b7490); font-size: 11.5px; text-align: center;
}
.tb-lock { display: grid; place-items: center; color: var(--tb-accent, #8b7cf6); opacity: .85; }
@keyframes tb-login-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes tb-login-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}
@keyframes tb-login-spin { to { transform: rotate(360deg); } }
@keyframes tb-login-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}
@media (max-width: 520px) {
  .tb-login-body { padding: 20px 14px; }
  .tb-login-card { padding: 26px 20px 22px; border-radius: 22px; }
  .tb-login-card h1 { font-size: 22px; }
  .tb-login-glow-a { width: 70vmax; height: 70vmax; }
  .tb-login-glow-b { width: 60vmax; height: 60vmax; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-login-card, .tb-login-alert, .tb-login-glow { animation: none; }
  .tb-login-submit, .tb-input-wrap input, .tb-pass-toggle { transition: none; }
}
