:root {
  --bg: #000000; /* pitch black */
  --panel: #000000;
  --panel-2: #000000;
  --text: #ffffff;
  --muted: #a7b0bd;
  --line: #1f2530;
  --primary: #00e5ff; /* electric blue */
  --primary-600: #10d4ff;
  --primary-700: #0fc7ef;
  --error: #ff4d4f;
  --focus: rgba(0, 229, 255, 0.25);
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg, .glow, .grain { display: none; }

.site-header, .site-footer { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 28px; height: 28px; display: grid; place-items: center; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; }

.main { min-height: calc(100% - 140px); display: grid; place-items: center; padding: 24px 16px; }
.card {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 2px solid var(--primary); border-radius: 14px; padding: 28px; box-shadow: var(--shadow);
}
.title { margin: 0 0 24px; font-size: 28px; font-weight: 700; }
.title.center { text-align: center; }
.subtitle { display: none; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 10px; }
.label { font-size: 13px; color: #c8d1dd; }
.label-row { display: flex; align-items: center; justify-content: space-between; }

.text-btn { background: transparent; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; }
.text-btn:hover { color: var(--primary-600); }

input[type="email"], input[type="password"] {
  width: 100%;
  appearance: none; outline: none; border: 1px solid var(--line);
  background: #000000; color: var(--text);
  padding: 14px 12px; border-radius: 10px; font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input::placeholder { color: #71809a; }
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px var(--focus);
}
.error { color: var(--error); min-height: 16px; font-size: 12px; margin: -6px 0 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-right { justify-content: flex-end; }
.checkbox { display: none; }

.link { color: var(--primary); text-decoration: none; font-size: 13px; }
.link:hover { color: var(--primary-600); text-decoration: underline; }

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #ffffff; font-weight: 700; letter-spacing: 0.3px;
}
.button:disabled { opacity: 0.6; cursor: not-allowed; }
.button:focus-visible { outline: 0; box-shadow: 0 0 0 6px var(--focus); }
.btn-label { position: relative; z-index: 1; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: rgba(255,255,255,0.9); border-radius: 50%; display: none; animation: spin 0.8s linear infinite; }
.button.loading .spinner { display: inline-block; }
.button.loading .btn-label { opacity: 0.7; }

/* Google button variant */
.button.google {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #2a2a2a;
}
.button.google:hover { background: #f7f7f7; }
.button.google .gicon { display: inline-flex; margin-right: 6px; }

.form-message { margin-top: 4px; min-height: 18px; font-size: 13px; color: var(--muted); }
.oauth { display: grid; gap: 12px; margin-top: 24px; margin-bottom: 0; }
.form-message.error { color: var(--error); }
.fine-print { display: none; }

.site-footer { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 420px) {
  .card { padding: 22px; border-radius: 12px; }
}
