* { box-sizing: border-box; }

:root {
  --bg: #f4f7f8; --card: #ffffff; --soft: #eaf3f4;
  --ink: #0f2a37; --muted: #5b6f7a; --line: #dbe5e8;
  --accent: #0e9f9a; --accent-ink: #ffffff; --accent-soft: #d9f1ef;
  --bad: #c0392b; --bad-soft: #fdecea;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,42,55,.06), 0 8px 28px rgba(15,42,55,.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1519; --card: #12212a; --soft: #16282f;
    --ink: #e6f0f3; --muted: #93a8b1; --line: #223640;
    --accent: #2cc4be; --accent-ink: #062321; --accent-soft: #123b3b;
    --bad: #ff8a7a; --bad-soft: #3a1c19;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  }
}

body {
  margin: 0; min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(900px 420px at 50% -10%, var(--accent-soft), transparent 70%);
}

/* HAMBURGER + SIDE MENU */
.hamburger-menu { position: fixed; top: 16px; right: 18px; cursor: pointer; z-index: 1001; padding: 6px; }
.hamburger-menu .bar { width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.side-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transition: right .3s ease; padding-top: 80px; z-index: 1000;
}
.side-menu.open { right: 0; }
.side-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.side-menu a i { color: var(--accent); font-size: 20px; }
.side-menu a:hover { background: var(--soft); }

/* LOGIN */
.lg-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px; gap: 22px;
}
.lg-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.lg-brand img { width: 96px; height: 96px; object-fit: contain; }
.lg-brand span { font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.lg-brand span b { color: var(--accent); font-weight: 800; }

.lg-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px;
}
.lg-card h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.lg-sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

.lg-error {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bad-soft); color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600;
}
.lg-error i { font-size: 20px; flex: none; }

.lg-field { margin-bottom: 16px; }
.lg-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lg-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.lg-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.lg-input i { color: var(--muted); font-size: 20px; }
.lg-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; padding: 14px 0;
}

.lg-submit {
  width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 20px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.lg-submit:hover { filter: brightness(1.07); }

.lg-foot { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 14.5px; }
.lg-foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }
