:root {
  --bg: #0b1120;
  --card-bg: #1e293b;
  --card-border: rgba(148, 163, 184, 0.12);
  --input-bg: #0f172a;
  --input-border: #334155;
  --input-border-focus: #6366f1;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #16213c 0%, var(--bg) 60%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 36px;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg { width: 18px; height: 18px; }

h1 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
p.sub { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.field { margin-bottom: 16px; }

input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
input::placeholder { color: #64748b; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-row input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

button {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
button:hover:not(:disabled) { background: var(--accent-hover); }
button:active:not(:disabled) { transform: scale(0.99); }
button:disabled { opacity: .55; cursor: not-allowed; }

.status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 18px;
  color: var(--text-muted);
}

.hidden { display: none; }

.link-btn {
  width: auto;
  background: none;
  color: #a5b4fc;
  padding: 0;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: #c7d2fe; background: none; }

.logout-btn {
  width: auto;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.logout-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
