/* login.css — Sign In Page */

body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* ── Login card ────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 18px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}
img.logo-icon {
  display: block;
  background: transparent;
}
.logo-text { font-size: 1.25rem; font-weight: 700; }

h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; text-align: center; }
p  { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-bottom: 1.75rem; }

/* ── OAuth buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: background 0.15s;
}
.btn:hover   { background: var(--surface3); }
.btn svg     { width: 18px; height: 18px; flex-shrink: 0; }

.divider { text-align: center; color: var(--text-muted); font-size: 0.75rem; margin: 0.5rem 0 1rem; }

.login-error {
  color: var(--red);
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 1rem;
}

/* ── DEV LOGIN (TEMPORARY) ────────────────────────────────────────────────────
   The email/password form on the login page, rendered only when
   DEV_BYPASS_ENABLED=true. Deliberately marked as a testing affordance so it is
   never mistaken for a shipped feature. Grep "DEV LOGIN (TEMPORARY)". */
.dev-login {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dev-login-banner {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 0.4rem 0.625rem;
  text-align: center;
}

.dev-login input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
}

.dev-login input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.dev-login .btn.primary {
  justify-content: center;
  margin-bottom: 0;
  background: var(--brand);
  border-color: transparent;
  color: #070b0a;
  font-weight: 700;
}

.dev-login-divider {
  position: relative;
  text-align: center;
  margin: 0 0 0.75rem;
}

.dev-login-divider span {
  position: relative;
  padding: 0 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dev-login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
