:root {
  color-scheme: dark;
  --page: #07100f;
  --panel: rgba(15, 30, 28, 0.92);
  --line: rgba(198, 230, 220, 0.16);
  --text: #f2f8f5;
  --muted: #9fb6ae;
  --teal: #6ee7c6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(35, 105, 85, 0.28), transparent 32rem),
    linear-gradient(145deg, #07100f 0%, #091412 52%, #07110f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, var(--panel), rgba(9, 22, 19, 0.94));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid rgba(110, 231, 198, .28);
  border-radius: 10px;
  background: rgba(110, 231, 198, .08);
}

.brand-mark i { display: block; border-radius: 4px; background: var(--teal); }
.brand-mark i:nth-child(1) { height: 8px; opacity: .45; }
.brand-mark i:nth-child(2) { height: 14px; opacity: .7; }
.brand-mark i:nth-child(3) { height: 20px; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.login-copy { margin: 54px 0 26px; }
.eyebrow { margin: 0 0 11px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.045em; }
.login-copy > p:last-child { margin: 0; color: #afc1bb; font-size: 14px; line-height: 1.6; }

.login-error {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 140, 140, .28);
  border-radius: 10px;
  background: rgba(255, 140, 140, .1);
  color: #ffb0b0;
  font-size: 13px;
}

form { display: grid; }
label { margin: 0 0 7px; color: #b9cbc5; font-size: 12px; font-weight: 700; }
input {
  width: 100%;
  height: 46px;
  margin: 0 0 18px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: rgba(5, 15, 13, .76);
  color: var(--text);
  font: inherit;
}
input:focus { border-color: rgba(110, 231, 198, .68); box-shadow: 0 0 0 3px rgba(110, 231, 198, .1); }
button {
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  background: var(--teal);
  color: #06201a;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}
button:hover { filter: brightness(1.05); }
button:focus-visible { outline: 3px solid rgba(110, 231, 198, .28); outline-offset: 3px; }
.session-note { margin: 20px 0 0; color: #718b82; font-size: 11px; text-align: center; }

@media (max-width: 480px) {
  .login-card { padding: 27px 22px; border-radius: 20px; }
  .login-copy { margin-top: 44px; }
}
