/* Sign-in page: same Apple-style system look as the app (dark by default; light follows the device or the in-app switch). */
:root { --bg: #000; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --line: rgba(255, 255, 255, .16); --input: #2c2c2e; --accent: #0a84ff; --accent-hover: #409cff; --err: #ff453a; color-scheme: dark; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f5f5f7; --card: #fff; --ink: #1d1d1f; --ink-2: #48484a; --ink-3: #86868b; --line: rgba(0, 0, 0, .14); --input: #fff; --accent: #0071e3; --accent-hover: #0077ed; --err: #d70015; color-scheme: light; } }
:root[data-theme="light"] { --bg: #f5f5f7; --card: #fff; --ink: #1d1d1f; --ink-2: #48484a; --ink-3: #86868b; --line: rgba(0, 0, 0, .14); --input: #fff; --accent: #0071e3; --accent-hover: #0077ed; --err: #d70015; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { width: min(380px, 100%); animation: in .45s cubic-bezier(.2, .8, .2, 1) both; }
.card { background: var(--card); border-radius: 18px; padding: 30px 28px 26px; display: grid; gap: 10px; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(127, 127, 127, .08); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.brand::before { content: ''; width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 14.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / cover, linear-gradient(160deg, #3f8cff 0%, #0058d0 100%); }
.brand b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand span { font-size: 12.5px; color: var(--ink-3); }
.lead { margin: 0 0 6px; color: var(--ink-2); font-size: 13.5px; }
label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: var(--input); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
button { margin-top: 8px; padding: 11px; border: none; border-radius: 980px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s ease, transform .15s cubic-bezier(.34, 1.36, .64, 1); }
button:hover { background: var(--accent-hover); }
button:active { transform: scale(.97); }
button[disabled] { opacity: .6; }
.err { margin: 4px 0 0; color: var(--err); font-size: 13px; }
@keyframes in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wrap { animation: none; } button { transition: none; } }
