:root {
  color-scheme: dark;
  --bg: #090d14;
  --panel: #111824;
  --panel-2: #182231;
  --line: #2a3749;
  --text: #f4f7fb;
  --muted: #9aa8ba;
  --accent: #ff6a00;
  --accent-hover: #ff8129;
  --success: #1fb879;
  --danger: #ef5b64;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.admin-logo { display: block; width: 180px; max-width: 60%; margin-bottom: 28px; filter: invert(1); }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
h2 { margin: 0 0 20px; font-size: 20px; }
.muted { color: var(--muted); }
.login-form, .password-form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #dbe3ee; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0c121c; color: var(--text); padding: 11px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,0,.14); }
textarea { resize: vertical; min-height: 82px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; color: var(--text); font-weight: 800; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--accent); color: #151515; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--panel-2); border-color: var(--line); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); text-decoration: none; }
.admin-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px max(24px, calc((100vw - 1240px) / 2)); background: rgba(9,13,20,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-header h1 { font-size: 25px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.admin-layout { width: min(1240px, calc(100% - 32px)); margin: 28px auto 100px; }
.form-card { margin-bottom: 20px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.notice { margin: 0 0 20px; padding: 13px 15px; border-radius: 10px; border: 1px solid; }
.notice.success { color: #baf5dc; background: rgba(31,184,121,.12); border-color: rgba(31,184,121,.5); }
.notice.error { color: #ffd0d3; background: rgba(239,91,100,.12); border-color: rgba(239,91,100,.5); }
.sticky-save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: rgba(24,34,49,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); color: var(--muted); }
.account-card { margin-top: 42px; }
.password-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }

@media (max-width: 760px) {
  .admin-header { position: static; align-items: flex-start; flex-direction: column; }
  .fields-grid, .password-form { grid-template-columns: 1fr; }
  .sticky-save { align-items: stretch; flex-direction: column; }
  .sticky-save .button { width: 100%; }
}
