/**
 * Platform admin login (primary UI theme).
 * Loaded on /admin/login — reversible via UI_THEME=default.
 */

[data-ui-theme="custom"] body.admin-login-shell {
  margin: 0;
  min-height: 100vh;
  background: #06060b;
  color: #e2e8f0;
  overflow-x: hidden;
}

[data-ui-theme="custom"] .admin-login-shell-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

[data-ui-theme="custom"] .admin-login-shell-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.14), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(139, 92, 246, 0.1), transparent 38%),
    linear-gradient(180deg, #06060b 0%, #0a0a12 100%);
}

[data-ui-theme="custom"] .admin-login-shell-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(148, 163, 184, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
}

[data-ui-theme="custom"] .admin-login-shell-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

[data-ui-theme="custom"] .admin-login-shell-brand {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(12, 12, 18, 0.98));
  padding: 2.25rem 2rem;
  display: flex;
  align-items: center;
}

[data-ui-theme="custom"] .admin-login-shell-brand-inner {
  max-width: 22rem;
}

[data-ui-theme="custom"] .admin-login-shell-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
  margin-bottom: 1.25rem;
}

[data-ui-theme="custom"] .admin-login-shell-logo--sm {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

[data-ui-theme="custom"] .admin-login-shell-brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin: 0 0 0.65rem;
}

[data-ui-theme="custom"] .admin-login-shell-brand-tagline {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

[data-ui-theme="custom"] .admin-login-shell-brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

[data-ui-theme="custom"] .admin-login-shell-brand-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
}

[data-ui-theme="custom"] .admin-login-shell-brand-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.65);
  flex-shrink: 0;
}

[data-ui-theme="custom"] .admin-login-shell-card-wrap {
  background: rgba(22, 22, 31, 0.96);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  align-items: center;
}

[data-ui-theme="custom"] .admin-login-shell-card {
  width: 100%;
}

[data-ui-theme="custom"] .admin-login-shell-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

[data-ui-theme="custom"] .admin-login-shell-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 0.15rem;
}

[data-ui-theme="custom"] .admin-login-shell-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

[data-ui-theme="custom"] .admin-login-shell-alert {
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  font-size: 0.9rem;
}

[data-ui-theme="custom"] .admin-login-shell-form .form-label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
}

[data-ui-theme="custom"] .admin-login-shell-input {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}

[data-ui-theme="custom"] .admin-login-shell-input::placeholder {
  color: #64748b;
}

[data-ui-theme="custom"] .admin-login-shell-input:focus {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(59, 130, 246, 0.55);
  color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-ui-theme="custom"] .admin-login-shell-submit {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-ui-theme="custom"] .admin-login-shell-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

[data-ui-theme="custom"] .admin-login-shell-dev {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[data-ui-theme="custom"] .admin-login-shell-dev-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

[data-ui-theme="custom"] .admin-login-shell-dev-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

[data-ui-theme="custom"] .admin-login-shell-dev-btn + .admin-login-shell-dev-btn {
  margin-top: 0.5rem;
}

[data-ui-theme="custom"] .admin-login-shell-dev-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.32);
  color: #f1f5f9;
}

[data-ui-theme="custom"] .admin-login-shell-foot {
  margin-top: 1.25rem;
  text-align: center;
}

[data-ui-theme="custom"] .admin-login-shell-foot a {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

[data-ui-theme="custom"] .admin-login-shell-foot a:hover {
  color: #93c5fd;
}

@media (max-width: 767px) {
  [data-ui-theme="custom"] .admin-login-shell-panel {
    grid-template-columns: 1fr;
  }

  [data-ui-theme="custom"] .admin-login-shell-brand {
    display: none;
  }

  [data-ui-theme="custom"] .admin-login-shell-card-wrap {
    padding: 1.5rem 1.25rem 1.35rem;
  }
}
