/* Login — same palette and background treatment as apexiumsystems.com. */
:root {
  --bg: #02040d;
  --panel: rgba(23, 24, 27, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #a8adbd;
  --indigo: #6366f1;
  --teal: #54d2d0;
  --magenta: #bb0897;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Ubuntu", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 16% 8%, rgba(99, 102, 241, 0.2), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(84, 210, 208, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 105%, rgba(187, 8, 151, 0.14), transparent 28rem),
    linear-gradient(180deg, #02040d 0%, #040816 44%, #02040d 100%);
  background-attachment: fixed;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand > div { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); }
.brand-sub { font-size: 1.02rem; font-weight: 500; }

h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 500; }
.lede { margin: 0 0 26px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

form { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 12px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(2, 4, 13, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}
#totp { letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }
/* `display: contents` lets the row's label+input participate in the form's
   flex layout — but it also beats the `hidden` attribute, so restate it. */
#totp-row { display: contents; }
#totp-row[hidden] { display: none; }

button {
  margin-top: 24px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
  color: #02040d;
  background: linear-gradient(120deg, var(--teal), var(--indigo));
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
button:hover:not(:disabled) { filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: progress; }

.error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  font-size: 0.86rem;
}

.foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}
