/* The login page (login.html): the approved mockup "Acessos / AcessoLogin". */
:root {
  --bg: #05070a;
  --card: rgba(17, 21, 28, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --field: #0e1218;
  --text: #e7eaf0;
  --muted: #8d96a6;
  --label: #b5bdca;
  --accent: #38d3c0;
  --button: #1f8f80;
  --bad: #ff9a9d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a class that sets display must never show what the code hid */
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login {
  width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
}
.login-brand { color: var(--accent); letter-spacing: 3px; font-size: 22px; }
.login-hint { color: var(--muted); font-size: 0.86em; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field span { font-size: 13px; color: var(--label); }
.login-field input {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--field); color: var(--text); font: inherit;
}
.login-field input:focus-visible, .login button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-keep { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.login-keep input { width: 18px; height: 18px; accent-color: var(--accent); }
.login button {
  min-height: 46px; border-radius: 10px; border: 0; background: var(--button); color: #fff; font: inherit;
  font-weight: 700; cursor: pointer;
}
.login button:disabled { opacity: 0.6; cursor: wait; }
.login-error { margin: 0; color: var(--bad); }
.login-discord {
  min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: #5865f2; color: #fff; font-weight: 700; text-decoration: none;
}
.login-discord:focus-visible, .login-privacy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login [hidden] { display: none !important; }
.login-privacy { align-self: flex-start; }
/* /privacidade (privacy.html) */
.privacy { max-width: 640px; gap: 10px; }
.privacy h1 { margin: 0; font-size: 20px; }
.privacy h2 { margin: 10px 0 0; font-size: 15px; color: var(--label); }
.privacy p, .privacy ul { margin: 0; color: var(--text); }
.privacy a { color: var(--accent); }
/* /entrar (onboarding.html): a login with no group */
.onb-server { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.onb-server img, .onb-icon { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.onb-icon { display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); }
.onb-server a { margin-left: auto; color: var(--accent); font-weight: 700; }
.onb-server .onb-pending { margin-left: auto; color: var(--muted); }
.onb-invite { display: flex; gap: 8px; }
.onb-invite input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--field); color: var(--text); font: inherit; }
.onb-invite button, .login .onb-again { min-height: 40px; padding: 0 14px; }
/* the invite, forgot and reset pages (invite.js) and the login's links when invites are on (mockup "convite v2") */
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.login-links a, .login-done a {
  color: var(--accent); font-size: 0.93em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.login-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-done { margin: 0; color: var(--text); }
.login-sub { margin: 0; font-size: 1.15em; }
.login-btn {
  min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--button); color: var(--text); font-weight: 700; text-decoration: none;
}
.login-body { display: contents; }   /* the page script fills it: its children are the card's rows */
.privacy a.login-discord { color: var(--text); }   /* the onboarding's Ligar o meu Discord: not the links' teal */
