:root {
  color-scheme: dark;
  --bg: #071016;
  --panel: #0d1822;
  --panel-2: #111f2c;
  --line: #203244;
  --text: #f5fbff;
  --muted: #9fb0bf;
  --accent: #38d5ff;
  --good: #2dd47d;
  --bad: #ff6478;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(6, 12, 23, .82), rgba(26, 18, 57, .86)),
    radial-gradient(circle at 18% 18%, rgba(56, 213, 255, .26), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(255, 34, 147, .2), transparent 32%),
    #06101c;
}
.admin-login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(56, 213, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 213, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(80, 222, 255, .24);
  border-radius: 16px;
  background: rgba(8, 17, 31, .82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .48), 0 0 40px rgba(56, 213, 255, .1);
  backdrop-filter: blur(18px);
}
.login-shell-compact {
  width: min(460px, 100%);
  min-height: auto;
  display: block;
}
.login-shell-compact .login-panel {
  min-height: auto;
}
.login-shell-compact .login-panel-header {
  text-align: center;
}
.login-shell-compact .login-logo-ring {
  margin: 0 auto 22px;
}
.login-hero,
.login-panel {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
}
.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background:
    linear-gradient(135deg, rgba(19, 43, 71, .86), rgba(29, 22, 60, .74)),
    radial-gradient(circle at 24% 20%, rgba(56, 213, 255, .24), transparent 34%);
  border-right: 1px solid rgba(80, 222, 255, .18);
}
.login-hero::after {
  content: "";
  position: absolute;
  inset: auto 36px 34px 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 213, 255, .95), rgba(255, 34, 147, .72), transparent);
  box-shadow: 0 0 24px rgba(56, 213, 255, .42);
}
.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}
.login-logo-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 213, 255, .28), rgba(123, 92, 255, .24));
  border: 1px solid rgba(130, 233, 255, .45);
  box-shadow: 0 0 34px rgba(56, 213, 255, .26);
}
.login-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.login-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.login-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .92;
  background: linear-gradient(135deg, #f5fbff, #38d5ff 50%, #ff2293);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero-copy {
  max-width: 560px;
  margin: 0;
  color: rgba(229, 241, 255, .78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}
.login-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-bottom: 28px;
}
.login-assurance-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(116, 231, 255, .18);
  border-radius: 8px;
  background: rgba(3, 10, 20, .42);
  color: rgba(244, 250, 255, .82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(9, 17, 30, .92), rgba(7, 13, 24, .96));
}
.login-panel-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
}
.login-panel-header p {
  margin-top: 0;
}
.login-form {
  margin-top: 12px;
}
.login-form label {
  color: rgba(223, 237, 255, .78);
  font-weight: 800;
}
.login-form input {
  min-height: 48px;
  border-radius: 10px;
  background: rgba(2, 10, 20, .72);
  border-color: rgba(112, 222, 255, .22);
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 213, 255, .16);
}
.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38d5ff, #7b5cff);
  color: #03101a;
  box-shadow: 0 16px 34px rgba(56, 213, 255, .22);
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(56, 213, 255, .3);
}
.login-return {
  align-self: center;
  margin-top: 20px;
  color: rgba(229, 241, 255, .68);
  text-decoration: none;
  font-size: 13px;
}
.login-return:hover {
  color: var(--accent);
}
h1, h2, h3 { margin: 0 0 10px; letter-spacing: 0; }
p { color: var(--muted); }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #08131c; color: var(--text); border-radius: 6px; padding: 10px 11px; font: inherit; }
input[type="checkbox"] { width: auto; margin-right: 6px; }
textarea { min-height: 78px; resize: vertical; }
button, .button { border: 0; border-radius: 6px; padding: 10px 14px; background: var(--accent); color: #00111a; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.secondary, .button.secondary { background: #172636; color: var(--text); border: 1px solid var(--line); }
.mini-button { padding: 7px 10px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.mini-button.warning { background: linear-gradient(135deg, #ffd166, #ff8a3d); }
.inline-secure-action { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-password { width: 150px; padding: 7px 9px; border-radius: 8px; font-size: 11px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { background: #08131c; border-right: 1px solid var(--line); padding: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-weight: 900; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav { display: grid; gap: 8px; }
.nav a { text-decoration: none; padding: 10px 12px; color: var(--muted); border-radius: 6px; }
.nav a.active, .nav a:hover { color: var(--text); background: #122233; }
.main { padding: 26px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.grid { display: grid; gap: 14px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.metric .label { color: var(--muted); font-size: 13px; }
.metric .value { font-size: 28px; font-weight: 900; margin-top: 8px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.notice { padding: 12px 14px; border-radius: 6px; margin: 0 0 14px; border: 1px solid var(--line); background: #102033; }
.notice.good { border-color: rgba(45,212,125,.5); color: var(--good); }
.notice.danger { border-color: rgba(255,100,120,.55); color: var(--bad); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compact input { padding: 7px 8px; }
.status { border-radius: 999px; padding: 3px 8px; font-size: 12px; background: #172636; color: var(--muted); }
.status.paid { color: var(--good); }
.status.pending { color: #ffd166; }
.status.failed { color: var(--bad); }
@media (max-width: 900px) {
  .admin-login {
    padding: 16px;
    align-items: start;
  }
  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .login-shell-compact {
    display: block;
  }
  .login-hero {
    border-right: 0;
    border-bottom: 1px solid rgba(80, 222, 255, .18);
  }
  .login-hero::after {
    display: none;
  }
  .login-brand-lockup {
    align-items: flex-start;
  }
  .login-assurance-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .metrics, .two { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
