:root {
  --accent: #ea6a1e;
  --accent-soft: #fdefe6;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --ink: #1c1b19;
  --ink-2: #56534d;
  --ink-3: #8a867e;
  --line: #e2e0db;
  --ok: #1f8f4e;
  --danger: #c53030;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,27,25,.05), 0 8px 24px rgba(28,27,25,.06);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a45;
    --accent-soft: #3a2415;
    --bg: #16150f;
    --surface: #1f1e19;
    --surface-2: #2a2822;
    --ink: #f3f1ec;
    --ink-2: #bdb8ae;
    --ink-3: #8b867c;
    --line: #35332c;
    --ok: #4ade80;
    --danger: #ff7b7b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
  .btn { color: #1a1208; }
  .btn.ghost, .btn.subtle { color: var(--ink); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }

p { margin: 0 0 .8em; }

code, pre { font-family: var(--mono); font-size: .92em; }

.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 600;
  padding: .6em 1.05em;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: filter .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { filter: brightness(.94); }
.btn:disabled { opacity: .5; cursor: default; }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.subtle { background: var(--surface-2); color: var(--ink); }
.btn.subtle:hover { background: var(--line); filter: none; }
.btn.small { padding: .38em .7em; font-size: .85rem; border-radius: 8px; }
.btn.danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: var(--surface-2); filter: none; }

input[type=text], input[type=password], textarea, select {
  font: inherit;
  width: 100%;
  padding: .55em .7em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { resize: vertical; min-height: 5.5em; line-height: 1.5; }

.error { color: var(--danger); font-weight: 600; }

/* centered pane (login / landing / 404) */
body.centered {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.logo {
  font-weight: 700; letter-spacing: -.03em; font-size: 1.35rem;
  color: var(--accent); margin-bottom: 1rem;
}
.loginform { display: grid; gap: 10px; margin-top: 1rem; }

/* fájltípus színkódok */
.ft { background: #6b7280; color: #fff !important; }
.ft-xls { background: #1d6f42 !important; }   /* Excel  */
.ft-doc { background: #2b579a !important; }   /* Word   */
.ft-ppt { background: #c43e1c !important; }   /* PowerPoint */
.ft-pdf { background: #c8102e !important; }   /* PDF    */
.ft-img { background: #7b4fbf !important; }   /* kép    */
.ft-vid { background: #b4256f !important; }   /* videó  */
.ft-aud { background: #00796b !important; }   /* hang   */
.ft-zip { background: #8d6e63 !important; }   /* tömörített */
.ft-txt { background: #546e7a !important; }   /* szöveg, kód */
