/* Aigean customer site. The AigeanOS look (Inter, zinc greyscale, dark,
   monochrome buttons, colour only for status), no scripts, one file. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --surface: #18181b;
  --border: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #fafafa;
  --accent-text: #09090b;
  --field: rgba(0, 0, 0, .3);
  --field-border: rgba(255, 255, 255, .12);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 8px;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .25rem; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* Top bar, signed in */
.top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
  height: 60px;
  border-bottom: 1px solid var(--border);
}
.top .brand { display: flex; align-items: center; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav form { margin: 0; }
.top nav button.link { text-decoration: none; font-size: 14px; white-space: nowrap; }
.env {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--warning); border: 1px solid currentColor; border-radius: 4px; padding: 0 6px;
}

main.page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }
main.page > h1 { margin-bottom: 1.5rem; }

/* Signed out: one card in the middle */
main.bare { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth { width: 100%; max-width: 400px; }
.auth .logo { display: block; margin: 0 auto 2rem; }
.auth h1 { text-align: center; margin-bottom: 1.5rem; }
.auth .below { text-align: center; margin-top: 1.25rem; color: var(--muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.card > :last-child { margin-bottom: 0; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: .35rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: .3rem; }
input[type=email], input[type=password], input[type=text] {
  width: 100%;
  height: 42px;
  padding: 0 .75rem;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  font: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 42px;
  padding: 0 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { opacity: .9; color: var(--accent-text); }
.button:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.button.secondary, button.secondary { background: transparent; color: var(--text); border-color: var(--field-border); }
.button.secondary:hover, button.secondary:hover { color: var(--text); border-color: var(--muted); }
button.danger { background: transparent; color: var(--error); border-color: rgba(239, 68, 68, .4); }
button.link { background: none; border: 0; height: auto; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--text); }
.wide { width: 100%; }
.stack > * + * { margin-top: .75rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row input { flex: 1 1 14rem; width: auto; }

/* Google's sign-in button, dark theme (Google's branding guidelines):
   #131314 fill, #8E918F outline, #E3E3E3 text, the four-colour G on the
   left, pill-shaped */
.gsi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: #131314;
  border: 1px solid #8e918f;
  color: #e3e3e3;
  font-family: "Roboto", "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25px;
  text-decoration: none;
}
.gsi:hover { background: #1f1f20; color: #e3e3e3; }
.gsi:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gsi .glogo { flex: none; }

.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: 13px; margin: 1.25rem 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Messages */
.flash, .error, .notice {
  border-radius: 6px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 14px;
}
.flash { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); }
.error { background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25); }
.notice { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); }
.notice form { display: inline; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li:last-child { padding-bottom: 0; }
.list form { margin: 0; }
.events td { padding: .3rem 1rem .3rem 0; font-size: 14px; vertical-align: top; }
.events td:first-child { color: var(--muted); white-space: nowrap; }

.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.plan-head h2 { margin: 0; }
.price { font-weight: 600; }
.status { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; border-radius: 4px; padding: 1px 8px; }
.status.good { color: var(--success); border: 1px solid rgba(16, 185, 129, .35); }
.plan form { margin: 0; }
.plan .row { margin-bottom: .75rem; }

.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }

@media (max-width: 520px) {
  .top { gap: .75rem; }
  .top .brand img { width: 82px; height: auto; }
  .top .env { display: none; }
  .top nav { gap: 1rem; }
  .card { padding: 1.25rem; }
}
