*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --border:  #2a2a2a;
  --accent:  #7c6af7;
  --accent2: #5b50d4;
  --text:    #e0e0e0;
  --muted:   #666;
  --red:     #f85149;
  --radius:  8px;
  --font:    'Segoe UI', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#login-wrap {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

#login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

#subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

input:focus {
  border-color: var(--accent);
}

#signin-btn {
  margin-top: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

#signin-btn:hover   { background: var(--accent2); }
#signin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#error-msg {
  background: #1e0a0a;
  border: 1px solid #4a1010;
  border-radius: 6px;
  color: var(--red);
  font-size: 12px;
  padding: 9px 12px;
  margin-top: 4px;
}

/* ── OAuth section ─────────────────── */
#oauth-hint {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

#oauth-divider::before,
#oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

#google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: not-allowed;
  opacity: 0.5;
  position: relative;
}

.soon-tag {
  font-size: 10px;
  background: #1e1e2a;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
}

.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 420px) {
  #login-card { padding: 28px 20px 24px; }
  #logo       { font-size: 20px; }
}
