@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Syne:wght@700;800&display=swap');

html { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #4d7cfe;
  --text: #1a1a2e;
  --muted: #7c7c99;
  --bg: #f4f4f8;
  --surface: #fff;
  --border: #e8e8f0;
  --green: #16a34a;
  --red: #dc2626;
  --gold: #f59e0b;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ── Login card ── */
.card { background: var(--surface); border-radius: 24px; padding: 40px; width: 100%; max-width: 420px; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.logo { font-family: 'Syne', sans-serif; font-size: 28px; color: var(--accent); margin-bottom: 4px; font-weight: 800; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
input { width: 100%; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 14px; color: var(--text); outline: none; transition: border-color .15s; }
input:focus { border-color: var(--accent); }
.btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 13px; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .9; }
.err { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--red); margin-bottom: 16px; display: none; }

/* ── Hub ── */
#hub { display: none; }
.hub-greeting { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.hub-sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.hub-options { display: flex; flex-direction: column; gap: 12px; }
.hub-btn { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 2px solid var(--border); border-radius: 16px; padding: 18px 20px; cursor: pointer; transition: all .15s; text-decoration: none; color: var(--text); }
.hub-btn:hover { border-color: var(--accent); background: #f0f4ff; }
.hub-icon { font-size: 28px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.hub-icon.blue { background: #e8f0fe; }
.hub-icon.purple { background: #f3e8ff; }
.hub-icon.green { background: #dcfce7; }
.hub-label { font-size: 15px; font-weight: 800; }
.hub-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.logout-row { margin-top: 24px; text-align: center; }
.logout-link { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 600; }
.logout-link:hover { color: var(--red); }
