/* Sign-in, first steps and invite pages. Same palette and type as the app (team-tasks.html). */
:root {
  --ground: #f1f3f7; --panel: #fff; --panel-2: #f6f7fa; --line: #e4e7ee; --line-2: #d3d8e2;
  --ink: #182033; --muted: #66708a; --faint: #9aa3b8;
  --accent: #2f5bd3; --accent-ink: #fff; --accent-soft: #e8eefc;
  --good: #15803d; --good-soft: #e3f4e8; --bad: #c62828; --bad-soft: #fdeaea; --warn: #b45309; --warn-soft: #fdf1e1;
  --glow-1: #dfe8ff; --glow-2: #e5f4ec; --shadow: rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1420; --panel: #171e2c; --panel-2: #1d2535; --line: #263042; --line-2: #33405a;
    --ink: #e6eaf2; --muted: #9aa5bd; --faint: #6c7790;
    --accent: #6d8ff0; --accent-ink: #0b1020; --accent-soft: #1e2a4a;
    --good: #4ade80; --good-soft: #13301f; --bad: #f87171; --bad-soft: #3a1717; --warn: #fbbf24; --warn-soft: #3a2a10;
    --glow-1: #1a2547; --glow-2: #12291f; --shadow: rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1420; --panel: #171e2c; --panel-2: #1d2535; --line: #263042; --line-2: #33405a;
  --ink: #e6eaf2; --muted: #9aa5bd; --faint: #6c7790;
  --accent: #6d8ff0; --accent-ink: #0b1020; --accent-soft: #1e2a4a;
  --good: #4ade80; --good-soft: #13301f; --bad: #f87171; --bad-soft: #3a1717; --warn: #fbbf24; --warn-soft: #3a2a10;
  --glow-1: #1a2547; --glow-2: #12291f; --shadow: rgba(0, 0, 0, .35); color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh; min-height: 100dvh;
  margin: 0; font-family: Cairo, system-ui, "Segoe UI", Tahoma, sans-serif; color: var(--ink); font-size: 14px;
  background: radial-gradient(70% 60% at 85% 10%, var(--glow-1) 0%, transparent 70%), radial-gradient(60% 60% at 10% 90%, var(--glow-2) 0%, transparent 70%), var(--ground);
  background-attachment: fixed; display: grid; place-items: center; padding: 32px 16px;
}
[hidden] { display: none !important; }
a { color: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px var(--shadow), 0 12px 32px var(--shadow); padding: 26px; width: 100%; max-width: 420px; display: grid; gap: 14px; }
.brand { display: flex; gap: 10px; align-items: center; justify-content: center; }
.logo { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, #ff9a3c, #ea580c); display: grid; place-items: center; color: #fff; box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), 0 6px 14px rgba(234, 88, 12, .35); flex: none; }
.brand b { font-size: 19px; font-weight: 800; }
h1, h2 { margin: 0; font-size: 20px; text-align: center; text-wrap: balance; }
.sub { margin: -8px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; line-height: 1.7; }

.sso { display: grid; gap: 8px; }
.sso button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px; font: inherit; font-weight: 700; font-size: 14px; background: var(--panel); color: var(--ink); cursor: pointer; }
.sso button:hover { background: var(--panel-2); }
.sso svg { width: 19px; height: 19px; flex: none; }
.sso .apple path { fill: var(--ink); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

form { display: grid; gap: 12px; margin: 0; }
.fld { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.fld input { font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 12px; width: 100%; min-width: 0; }
.fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input[type="email"], .fld input[type="password"], .fld input.ltr { direction: ltr; text-align: right; }
.pw { position: relative; }
.pw input { padding-inline-start: 64px; }
.pw button { position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px; font: inherit; font-weight: 800; font-size: 14.5px; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; width: 100%; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.sec { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.msg { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.7; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--good-soft); color: var(--good); }
.msg.info { background: var(--accent-soft); color: var(--ink); }
.note { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7; margin: 0; }
.note b { color: var(--ink); }

/* first steps */
.wide { width: 100%; max-width: 700px; display: grid; gap: 18px; }
.hello { text-align: center; display: grid; gap: 4px; }
.hello h1 { font-size: 22px; }
.hello p { margin: 0; color: var(--muted); font-size: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.opt { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; align-content: start; box-shadow: 0 8px 24px var(--shadow); }
.opt.main { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px var(--shadow); }
.opt .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.opt .ic.g { background: var(--good-soft); color: var(--good); }
.opt h2 { margin: 0; font-size: 16.5px; text-align: start; }
.opt p { margin: -6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot { text-align: center; font-size: 13px; color: var(--muted); }

/* invite */
.inv-top { display: grid; justify-items: center; gap: 8px; text-align: center; }
.av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; background: #0f7a6c; }
.co { display: grid; gap: 8px; background: var(--panel-2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.co div { display: flex; justify-content: space-between; gap: 12px; }
.co span { color: var(--muted); }
.co b { text-align: end; }
.co b i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; justify-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }
