/**
 * Admin giriş — Zytek Signature (admin/login.php)
 */
*, *::before, *::after {
  box-sizing: border-box;
}

body.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--theme-font-body, 'Inter', sans-serif);
  background: var(--theme-bg, #0c1324) !important;
  color: var(--theme-secondary, #dce1fb);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

body.admin-login-page input {
  font-family: inherit;
}

body.admin-login-page .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html.light body.admin-login-page input.admin-login-input {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

body.admin-login-page.login-signature-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 700px at 8% 12%, rgba(var(--theme-primary-rgb), 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 700px 600px at 92% 88%, rgba(var(--theme-secondary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 500px 400px at 50% 50%, rgba(var(--theme-primary-rgb), 0.05) 0%, transparent 70%) !important;
}

.admin-login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

#adminLoginParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.admin-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: admin-login-orb-drift 20s ease-in-out infinite;
}

.admin-login-orb-a {
  width: 480px;
  height: 480px;
  top: -10%;
  left: -8%;
  background: rgba(var(--theme-primary-rgb), 0.28);
}

.admin-login-orb-b {
  width: 400px;
  height: 400px;
  bottom: -12%;
  right: -6%;
  background: rgba(var(--theme-secondary-rgb), 0.18);
  animation-delay: -10s;
}

.admin-login-orb-c {
  width: 280px;
  height: 280px;
  top: 45%;
  left: 55%;
  background: rgba(var(--theme-primary-rgb), 0.12);
  animation-delay: -5s;
  filter: blur(60px);
}

.admin-login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(var(--theme-secondary-rgb), 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--theme-secondary-rgb), 0.9) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
}

.admin-login-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.admin-login-cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}

body.admin-login-page.login-signature-cursor-on .admin-login-cursor-glow {
  opacity: 1;
}

@keyframes admin-login-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(35px, 25px) scale(1.06); }
  66% { transform: translate(-25px, 40px) scale(0.94); }
}

.admin-theme-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: rgba(var(--theme-bg), 0.6);
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.15);
  color: rgba(var(--theme-secondary-rgb), 0.7);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.admin-theme-btn:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.35);
  color: var(--theme-primary);
}

.admin-login-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.admin-card-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .admin-card-wrap {
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .admin-login-shell {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-login-left {
  display: none;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .admin-login-left {
    display: flex;
  }
}

.admin-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  box-shadow: 0 0 28px rgba(var(--theme-primary-rgb), 0.14);
  animation: admin-badge-glow 3s ease-in-out infinite;
}

@keyframes admin-badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.1); }
  50% { box-shadow: 0 0 32px rgba(var(--theme-primary-rgb), 0.22); }
}

.admin-secure-badge .badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-primary);
  animation: admin-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes admin-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.admin-vault {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.75rem;
}

.admin-vault-core {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(var(--theme-primary-rgb), 0.22), rgba(var(--theme-bg), 0.85));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  box-shadow: 0 0 40px rgba(var(--theme-primary-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
  animation: admin-vault-float 5s ease-in-out infinite;
}

.admin-vault-core .material-symbols-outlined,
.admin-vault-core .vault-letter {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--theme-primary);
  filter: drop-shadow(0 0 12px rgba(var(--theme-primary-rgb), 0.5));
}

.admin-vault-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.25);
  animation: admin-ring-spin 24s linear infinite;
}

.admin-vault-ring:nth-child(2) {
  inset: -22px;
  border-style: solid;
  border-color: rgba(var(--theme-primary-rgb), 0.08);
  animation-duration: 36s;
  animation-direction: reverse;
}

.admin-vault-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.8);
  top: -3px;
  left: 50%;
  margin-left: -3px;
}

@keyframes admin-vault-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes admin-ring-spin {
  to { transform: rotate(360deg); }
}

.admin-headline {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--theme-secondary);
  font-family: 'Space Grotesk', var(--theme-font-display, sans-serif);
}

.admin-headline-accent {
  display: block;
  background: linear-gradient(120deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 60%, #fff), var(--theme-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: admin-text-shimmer 4s linear infinite;
  filter: drop-shadow(0 0 20px rgba(var(--theme-primary-rgb), 0.25));
}

@keyframes admin-text-shimmer {
  to { background-position: 200% center; }
}

.admin-login-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(var(--theme-secondary-rgb), 0.65);
  max-width: 28rem;
}

.admin-feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(var(--theme-bg), 0.45);
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.12);
  margin-bottom: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.25s, box-shadow 0.25s;
}

.admin-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(var(--theme-primary-rgb), 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.admin-feature-card:hover {
  transform: translateX(6px) scale(1.01);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  box-shadow: 0 12px 40px rgba(var(--theme-primary-rgb), 0.1);
}

.admin-feature-card:hover::before {
  transform: translateX(100%);
}

.admin-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  flex-shrink: 0;
}

.admin-feature-icon .material-symbols-outlined {
  color: var(--theme-primary);
  font-size: 1.25rem;
}

.admin-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-secondary);
}

.admin-feature-sub {
  font-size: 0.75rem;
  color: rgba(var(--theme-secondary-rgb), 0.55);
  margin-top: 0.15rem;
}

/* Kart */
.admin-aurora {
  position: absolute;
  inset: -3px;
  border-radius: 1.65rem;
  background: conic-gradient(
    from var(--aurora-angle, 0deg),
    rgba(var(--theme-primary-rgb), 0.7),
    rgba(var(--theme-secondary-rgb), 0.15),
    rgba(var(--theme-primary-rgb), 0.4),
    transparent 40%,
    rgba(var(--theme-primary-rgb), 0.5)
  );
  opacity: 0.55;
  filter: blur(1px);
  animation: admin-aurora-spin 8s linear infinite;
  z-index: 0;
}

@property --aurora-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes admin-aurora-spin {
  to { --aurora-angle: 360deg; }
}

.admin-login-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  background: color-mix(in srgb, var(--theme-bg) 92%, transparent);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-resolution: 1.05dppx) {
    .admin-login-card {
      backdrop-filter: blur(24px) saturate(1.2);
      background: color-mix(in srgb, var(--theme-bg) 82%, transparent);
    }
  }
}

.admin-login-card.shake {
  animation: admin-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes admin-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.admin-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-primary-rgb), 0.6), transparent);
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.4);
  opacity: 0.35;
  animation: admin-scan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes admin-scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

.admin-card-corner {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.admin-card-corner.tl { top: 1rem; left: 1rem; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.admin-card-corner.tr { top: 1rem; right: 1rem; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.admin-card-corner.bl { bottom: 1rem; left: 1rem; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.admin-card-corner.br { bottom: 1rem; right: 1rem; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.admin-login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px 240px at var(--sx, 50%) var(--sy, 0%), rgba(var(--theme-primary-rgb), 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.admin-login-card:hover::after {
  opacity: 1;
}

.admin-card-inner {
  position: relative;
  z-index: 1;
}

.admin-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
}

.admin-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--theme-secondary);
}

.admin-card-sub {
  font-size: 0.875rem;
  color: rgba(var(--theme-secondary-rgb), 0.6);
  margin-bottom: 1.75rem;
}

.admin-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
  .admin-mobile-logo { display: none; }
}

.admin-mobile-logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(var(--theme-primary-rgb), 0.25), rgba(var(--theme-primary-rgb), 0.05));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-primary);
}

.admin-login-error {
  color: #f87171;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  line-height: 1.5;
}

.admin-field-group {
  margin-bottom: 1.15rem;
  animation: admin-field-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--fi, 0) * 0.07s);
}

@keyframes admin-field-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--theme-secondary-rgb), 0.55);
  margin-bottom: 0.5rem;
}

.admin-input-wrap {
  position: relative;
}

.admin-input-glow {
  position: absolute;
  inset: -1px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.admin-input-wrap:focus-within .admin-input-glow {
  opacity: 0.5;
}

.admin-login-input {
  width: 100%;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-bg) 78%, #fff), color-mix(in srgb, var(--theme-bg) 96%, #000));
  border: 2px solid rgba(var(--theme-secondary-rgb), 0.1);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  color: var(--theme-secondary);
  font-size: 0.9375rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.admin-login-input--action {
  padding-right: 2.75rem;
}

.admin-login-input:focus {
  border-color: rgba(var(--theme-primary-rgb), 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 4px rgba(var(--theme-primary-rgb), 0.12), 0 8px 24px rgba(var(--theme-primary-rgb), 0.15);
  transform: translateY(-1px);
}

.admin-login-input::placeholder {
  color: rgba(var(--theme-secondary-rgb), 0.52);
}

.admin-login-input:not(:placeholder-shown) {
  color: var(--theme-secondary);
}

.admin-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--theme-secondary-rgb), 0.45);
  font-size: 1.25rem;
  pointer-events: none;
  z-index: 2;
}

.admin-input-wrap:focus-within .admin-input-icon {
  color: var(--theme-primary);
}

.admin-toggle-pass {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--theme-secondary-rgb), 0.45);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 0.4rem;
  transition: color 0.2s, background 0.2s;
}

.admin-toggle-pass .material-symbols-outlined {
  font-size: 1.2rem;
  pointer-events: none;
}

.admin-toggle-pass:hover {
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.08);
}

.admin-captcha-box {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(var(--theme-primary-rgb), 0.06);
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.28);
}

.admin-captcha-box .admin-field-label strong {
  color: var(--theme-primary);
}

.zytek-captcha-widget {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.zytek-captcha-widget .cf-turnstile {
  margin: 0 auto;
}

.admin-submit-wrap {
  margin-top: 0.5rem;
  animation: admin-field-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.35s;
}

.admin-login-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 88%, #000), var(--theme-primary));
  box-shadow: 0 8px 28px rgba(var(--theme-primary-rgb), 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(var(--theme-primary-rgb), 0.45);
}

.admin-login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: admin-btn-shine 2.8s ease-in-out infinite;
}

@keyframes admin-btn-shine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.admin-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: 0.6875rem;
  color: rgba(var(--theme-secondary-rgb), 0.55);
  letter-spacing: 0.04em;
}

.admin-trust-strip .material-symbols-outlined {
  font-size: 14px;
  color: rgba(var(--theme-primary-rgb), 0.6);
}

.admin-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--theme-secondary-rgb), 0.1);
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(var(--theme-secondary-rgb), 0.55);
}

.admin-otp-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(var(--theme-secondary-rgb), 0.65);
  margin-bottom: 1rem;
  line-height: 1.5;
}

html.light body.admin-login-page {
  background: #f1f5f9 !important;
  color: #0f172a;
}

html.light .admin-login-card {
  background: color-mix(in srgb, #fff 88%, transparent);
}

html.light .admin-headline,
html.light .admin-card-title,
html.light .admin-feature-title {
  color: #0f172a;
}

html.light .admin-login-input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

html.light .admin-theme-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

@media (prefers-reduced-motion: reduce) {
  .admin-login-orb, .admin-vault-core, .admin-vault-ring, .admin-aurora,
  .admin-scan-line, .admin-login-btn::after, .admin-headline-accent,
  .admin-secure-badge, .admin-field-group, .admin-card-enter,
  .admin-captcha-num, .admin-welcome-badge {
    animation: none !important;
  }
}

/* ── Premium polish v4 ── */
.admin-live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(var(--theme-secondary-rgb), 0.65);
  background: rgba(var(--theme-bg), 0.45);
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.1);
}

.admin-stat-chip .material-symbols-outlined {
  font-size: 14px;
  color: var(--theme-primary);
}

.admin-stat-chip--live {
  color: var(--theme-primary);
  border-color: rgba(var(--theme-primary-rgb), 0.25);
  background: rgba(var(--theme-primary-rgb), 0.08);
}

.admin-stat-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-primary);
  animation: admin-pulse-dot 1.8s ease-in-out infinite;
}

.admin-card-enter {
  animation: admin-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes admin-card-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-card-watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  font-size: 9rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
  color: rgba(var(--theme-primary-rgb), 0.04);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.admin-welcome-badge {
  position: relative;
  overflow: hidden;
}

.admin-welcome-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(var(--theme-primary-rgb), 0.12) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: admin-badge-sweep 4s ease-in-out infinite;
}

@keyframes admin-badge-sweep {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.admin-form-progress-wrap {
  margin-bottom: 1.25rem;
}

.admin-form-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(var(--theme-secondary-rgb), 0.1);
  overflow: hidden;
}

.admin-form-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.4), var(--theme-primary));
  box-shadow: 0 0 12px rgba(var(--theme-primary-rgb), 0.45);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-form-progress-label {
  margin: 0.45rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--theme-secondary-rgb), 0.45);
}

.admin-form-progress-label span {
  color: var(--theme-primary);
  font-variant-numeric: tabular-nums;
}

.admin-captcha-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0;
}

.admin-captcha-num {
  min-width: 2.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.28);
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.12);
  animation: admin-captcha-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.admin-captcha-num:nth-child(1) { animation-delay: 0.05s; }
.admin-captcha-num:nth-child(3) { animation-delay: 0.12s; }

@keyframes admin-captcha-pop {
  from { opacity: 0; transform: scale(0.85) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-captcha-op {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(var(--theme-secondary-rgb), 0.5);
}

.admin-captcha-q {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-primary);
  animation: admin-captcha-blink 1.6s ease-in-out infinite;
}

@keyframes admin-captcha-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.admin-captcha-fallback {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: var(--theme-primary);
  font-weight: 600;
}

.admin-input-wrap.is-complete .admin-login-input {
  border-color: rgba(var(--theme-primary-rgb), 0.45);
}

.admin-input-wrap.is-complete::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--theme-primary);
  z-index: 3;
  pointer-events: none;
  animation: admin-check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-input-wrap.is-complete:has(.admin-toggle-pass)::after {
  right: 2.75rem;
}

@keyframes admin-check-pop {
  from { transform: translateY(-50%) scale(0.4); opacity: 0; }
  to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.admin-login-btn.is-loading .material-symbols-outlined {
  animation: admin-spin 0.8s linear infinite;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}
