/* Recruon – base styles (no build step). Palette and type follow fareon.nl:
   plum #35192E, coral #EA6A3F → brick #C24244, light #F5F7F9, Plus Jakarta Sans (headings 800). */
:root {
  --plum: #35192E;
  --plum-2: #44223B;
  --plum-3: #55294F;
  --plum-ink: #d9cfd8;
  --plum-muted: #a48fa2;
  --coral: #EA6A3F;
  --brick: #C24244;
  --grad: linear-gradient(135deg, #EA6A3F, #C24244);

  --bg: #F5F7F9;
  --surface: #ffffff;
  --surface-2: #FAFBFC;
  --ink: #1C1A22;
  --ink-2: #5B5866;
  --ink-3: #6E6B7A;
  --line: #E8EBF0;
  --line-2: #F0F2F5;

  --brand: var(--plum);          /* primary buttons */
  --brand-hover: var(--plum-2);
  --brand-ink: #ffffff;
  --accent: var(--coral);        /* focus, highlights */
  --accent-soft: #FDEEE5;
  --link: #B8472A;               /* coral darkened for text contrast on white */

  --ok: #1F9D6B;  --ok-ink: #157A52;  --ok-soft: #E8F6F0;
  --warn: #B7860B; --warn-ink: #8A6508; --warn-soft: #FBF4DF;
  --danger: #C9443F; --danger-ink: #A8322E; --danger-soft: #FBEAEA;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 6px 24px -8px rgb(43 18 41 / .14), 0 2px 6px rgb(28 26 34 / .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160A14;
    --surface: #211020;
    --surface-2: #2A1529;
    --ink: #F3EEF2;
    --ink-2: #CBBFC9;
    --ink-3: #A48FA2;
    --line: #3A2237;
    --line-2: #301B2E;
    --brand: var(--coral);
    --brand-hover: #F07D56;
    --brand-ink: #1D0C19;
    --accent-soft: #3A1C17;
    --link: #F28A64;
    --ok: #4FC796; --ok-ink: #5FD3A3; --ok-soft: #12301F;
    --warn: #E2B347; --warn-ink: #F2C35A; --warn-soft: #3A2C10;
    --danger: #F0716C; --danger-ink: #FF8A85; --danger-soft: #3D1517;
    --shadow: 0 6px 24px -8px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
::selection { background: #f6d3c5; color: #1C1A22; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.022em; }
h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.018em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[x-cloak] { display: none !important; }

/* Brand mark (resources/views/components/recruon-mark): stem + leg take currentColor, hexagon the Fareon gradient */
.mark { display: block; flex: none; color: var(--plum); }
@media (prefers-color-scheme: dark) { .mark { color: #fff; } }

/* ---------- Landing (recruon.com) ---------- */
.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at -10% 120%, rgb(232 113 74 / .38), transparent 60%),
    radial-gradient(800px 500px at 110% -10%, rgb(201 68 63 / .28), transparent 60%),
    var(--plum);
}
.landing__inner { width: 100%; max-width: 44rem; text-align: center; }
.landing__mark { margin: 0 auto 28px; color: #fff; filter: drop-shadow(0 14px 28px rgb(234 106 63 / .35)); }
.landing__name {
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 .3em;
}
.landing__line { font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--plum-ink); margin: 0; }
.landing__by {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12);
  color: var(--plum-muted); font-size: .9rem; font-weight: 500;
}
.landing__by img { height: 22px; width: auto; display: block; }

/* ---------- App shell ---------- */
.shell { min-height: 100svh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--plum); color: var(--plum-ink);
}
.topbar form { display: flex; align-items: center; gap: 12px; margin: 0; }
.topbar .muted { color: var(--plum-muted); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.brand__tag { font-weight: 500; color: var(--plum-muted); }
.topbar .btn--ghost { color: var(--plum-ink); border-color: rgb(255 255 255 / .16); }
.topbar .btn--ghost:hover { background: rgb(255 255 255 / .07); color: #fff; }
.main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.stack > * + * { margin-top: 24px; }

/* ---------- Auth pages ---------- */
.auth {
  min-height: 100svh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(900px 500px at 50% -20%, var(--accent-soft), transparent 70%), var(--bg);
}
.auth__card { width: 100%; max-width: 400px; }
.auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth__head strong { font-weight: 800; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.field__hint { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.input {
  width: 100%; height: 40px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgb(234 106 63 / .18); }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.input-affix { display: flex; align-items: stretch; }
.input-affix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-affix__suffix {
  display: flex; align-items: center; padding: 0 12px; color: var(--ink-3); font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.error { color: var(--danger-ink); font-size: .84rem; margin-top: 4px; display: block; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 16px; }
.check input { accent-color: var(--coral); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .main { padding: 24px 16px 48px; }
  .topbar { padding: 12px 16px; }
  .topbar .muted { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--brand-hover); box-shadow: 0 6px 18px -8px rgb(53 25 46 / .5); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn--sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--ink-3); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge--ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge--warn { background: var(--warn-soft); color: var(--warn-ink); }

.notice { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.notice--ok { background: var(--ok-soft); border-color: transparent; }
.notice--error { background: var(--danger-soft); border-color: transparent; color: var(--danger-ink); }
.copyline { display: flex; gap: 8px; margin-top: 10px; }
.copyline .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }

.empty { text-align: center; padding: 32px 16px; color: var(--ink-3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
