.admin-modern.premium-auth {
  --auth-surface: rgba(255, 255, 255, 0.78);
  --auth-surface-strong: rgba(255, 255, 255, 0.92);
  --auth-border: rgba(15, 23, 42, 0.12);
  --auth-border-strong: rgba(15, 23, 42, 0.18);
  --auth-hero-text: #0b1a34;
  --auth-hero-muted: #3b4b68;
  --auth-accent-start: #0f6ac9;
  --auth-accent-end: #14b8a6;
  --auth-alert-bg: #fef2f2;
  --auth-alert-border: #fecaca;
  --auth-alert-text: #991b1b;
  --auth-lock-bg: #fff7ed;
  --auth-lock-border: #fdba74;
  --auth-lock-text: #9a3412;
  --auth-ring: rgba(15, 106, 201, 0.24);
  background:
    radial-gradient(1300px 600px at 5% 0%, rgba(20, 184, 166, 0.15), transparent 62%),
    radial-gradient(900px 500px at 96% 18%, rgba(15, 106, 201, 0.22), transparent 58%),
    linear-gradient(145deg, #eef4ff 0%, #f8fbff 48%, #eef9f7 100%);
}

.admin-modern.admin-auth.premium-auth {
  padding: 1rem;
}

.admin-modern.premium-auth .premium-auth-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 460px);
  gap: var(--space-8);
  align-items: stretch;
}

.admin-modern.premium-auth .premium-auth-shell.premium-auth-shell-login {
  width: min(400px, calc(100vw - 2rem));
  display: block;
}

.admin-modern.premium-auth .premium-auth-hero {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  padding: 2.6rem;
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.admin-modern.premium-auth .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a4e9c;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 78, 156, 0.25);
  border-radius: 999px;
  padding: 0.36rem 0.82rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.admin-modern.premium-auth .hero-title {
  margin: 0;
  font-family: "Manrope", "IBM Plex Sans", "Source Sans 3", sans-serif;
  font-size: clamp(1.85rem, 2.3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--auth-hero-text);
  max-width: 16ch;
}

.admin-modern.premium-auth .hero-subtitle {
  margin-top: 1.05rem;
  margin-bottom: 2rem;
  color: var(--auth-hero-muted);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 52ch;
}

.admin-modern.premium-auth .hero-feature-list {
  display: grid;
  gap: 0.9rem;
}

.admin-modern.premium-auth .hero-feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.admin-modern.premium-auth .hero-feature-card h2 {
  margin: 0 0 0.4rem;
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--auth-hero-text);
  font-weight: 700;
}

.admin-modern.premium-auth .hero-feature-card p {
  margin: 0;
  color: var(--auth-hero-muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.admin-modern.premium-auth .premium-auth-panel {
  display: flex;
  align-items: stretch;
}

.admin-modern.premium-auth .premium-auth-shell.premium-auth-shell-login .premium-auth-panel {
  width: 100%;
  justify-content: center;
}

.admin-modern.premium-auth .premium-auth-shell.premium-auth-shell-login .premium-auth-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 20px;
}

.admin-modern.premium-auth .premium-auth-card {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--auth-border-strong);
  background: var(--auth-surface-strong);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.admin-modern.premium-auth .auth-eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  color: #4b6385;
  font-weight: 700;
}

.admin-modern.premium-auth .auth-title {
  margin: 0;
  font-family: "Manrope", "IBM Plex Sans", "Source Sans 3", sans-serif;
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.admin-modern.premium-auth .auth-subtitle {
  margin-top: 0.45rem;
  margin-bottom: 0;
  color: #4b5f7f;
}

.admin-modern.premium-auth .auth-alert {
  background: var(--auth-alert-bg);
  color: var(--auth-alert-text);
  border: 1px solid var(--auth-alert-border);
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.admin-modern.premium-auth .auth-lockout {
  background: var(--auth-lock-bg);
  color: var(--auth-lock-text);
  border: 1px solid var(--auth-lock-border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.admin-modern.premium-auth .auth-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-modern.premium-auth .honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.admin-modern.premium-auth .auth-password-wrap {
  position: relative;
}

.admin-modern.premium-auth .auth-input {
  box-sizing: border-box;
}

.admin-modern.premium-auth .auth-input-password {
  padding-right: 5rem;
  padding-inline-end: 5rem;
}

.admin-modern.premium-auth .password-toggle {
  position: absolute;
  right: 0.45rem;
  left: auto;
  inset-inline-end: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #1f3b66;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.36rem 0.58rem;
  min-width: 60px;
  cursor: pointer;
}

.admin-modern.premium-auth .password-toggle:focus-visible {
  outline: 2px solid var(--auth-accent-start);
  outline-offset: 1px;
}

.admin-modern.premium-auth .challenge-field {
  border: 1px solid #d6e6ff;
  background: #f4f9ff;
  border-radius: 14px;
  padding: 0.9rem;
}

.admin-modern.premium-auth .challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.admin-modern.premium-auth .challenge-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: #0a4e9c;
}

.admin-modern.premium-auth .challenge-refresh {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0a4e9c;
  text-decoration: none;
}

.admin-modern.premium-auth .challenge-refresh:hover {
  text-decoration: underline;
}

.admin-modern.premium-auth .challenge-prompt {
  margin: 0 0 0.65rem;
  color: #1a365f;
  font-size: 0.88rem;
  line-height: 1.48;
}

.admin-modern.premium-auth .security-note {
  margin: 0 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #324a71;
  font-size: 0.84rem;
  line-height: 1.52;
  padding: 0.72rem 0.86rem;
}

.admin-modern.premium-auth .auth-input:focus {
  box-shadow: 0 0 0 3px var(--auth-ring);
}

.admin-modern.premium-auth .auth-button {
  margin-top: 0.2rem;
  background: linear-gradient(115deg, var(--auth-accent-start), var(--auth-accent-end));
  border-radius: 12px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.admin-modern.premium-auth .auth-button:focus-visible {
  outline: 2px solid var(--auth-accent-start);
  outline-offset: 2px;
}

.admin-modern.premium-auth .auth-button.loading .button-text {
  opacity: 0.88;
}

.admin-modern.premium-auth .loading-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: auth-spin 0.9s linear infinite;
}

.admin-modern.premium-auth .auth-button.loading .loading-spinner {
  display: inline-block;
}

.admin-modern.premium-auth .auth-status {
  margin-top: 1rem;
  display: grid;
  gap: 0.34rem;
  color: #486083;
  font-size: 0.78rem;
}

@keyframes auth-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .admin-modern.premium-auth .premium-auth-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .admin-modern.premium-auth .premium-auth-hero {
    order: 2;
    padding: 1.6rem;
  }

  .admin-modern.premium-auth .premium-auth-panel {
    order: 1;
  }
}

@media (max-width: 640px) {
  .admin-modern.admin-auth.premium-auth {
    padding: 0.85rem;
  }

  .admin-modern.premium-auth .premium-auth-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .admin-modern.premium-auth .hero-title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-modern.premium-auth .auth-button,
  .admin-modern.premium-auth .auth-input,
  .admin-modern.premium-auth .password-toggle {
    transition: none;
  }

  .admin-modern.premium-auth .loading-spinner {
    animation: none;
  }
}
