:root {
  --navy-950: #0A1A2E;
  --navy-900: #0F2A4A;
  --navy-800: #153A63;
  --navy-700: #1F4E80;
  --navy-100: #E7EDF4;
  --navy-050: #F4F7FB;
  --orange-600: #D97D04;
  --orange-500: #F29005;
  --orange-100: #FDEBD2;
  --orange-050: #FFF6EA;
  --white: #fff;
  --gray-50: #F5F7F9;
  --gray-100: #EDF0F3;
  --gray-200: #E1E5EA;
  --gray-400: #9AA6B2;
  --gray-600: #5B6672;
  --gray-800: #2B333B;
  --green-600: #2E7D5B;
  --green-100: #E4F3EC;
  --red-600: #C0392B;
  --red-100: #FBE9E7;
  --amber-600: #B7791F;
  --amber-100: #FCF1DC;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, .06);
  --shadow-md: 0 4px 14px rgba(15, 42, 74, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  font-size: 14.5px;
  line-height: 1.45;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, .95fr);
}
.login-hero {
  background:
    radial-gradient(900px 420px at 10% 80%, rgba(242, 144, 5, .22), transparent 60%),
    var(--navy-950);
  color: var(--white);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.login-hero img {
  height: 36px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}
.eyebrow {
  color: var(--orange-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.login-hero h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 460px;
}
.login-hero p { max-width: 440px; color: #C7D2DE; margin-top: 14px; }
.login-points { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.login-points span {
  display: flex; gap: 8px; align-items: center; color: #E7EDF4; font-size: 13.5px;
}
.login-points i {
  width: 7px; height: 7px; border-radius: 99px; background: var(--orange-500); display: block;
}
.login-panel { padding: 36px 32px 48px; overflow: auto; }
.login-panel h2 { font-size: 22px; color: var(--navy-900); }
.lede { color: var(--gray-600); margin: 6px 0 18px; }
.group-label {
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.account {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.account:hover { border-color: var(--orange-500); }
.account.is-off { opacity: .55; }
.account b { display: block; color: var(--navy-900); }
.account small { color: var(--gray-600); }
.avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex: 0 0 36px;
}
.avatar.alt { background: var(--orange-600); }
.error {
  background: var(--red-100); color: var(--red-600);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px;
}
.linkish {
  background: none; border: 0; color: var(--navy-700); padding: 0;
  font-weight: 650; text-decoration: underline; text-underline-offset: 2px;
}
.login-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

.shell { display: flex; min-height: 100vh; }
.side {
  width: 260px; flex: 0 0 260px; background: var(--navy-950); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 6px 8px; }
.who {
  margin: 14px 14px 6px; padding: 10px 12px;
  background: rgba(255,255,255,.05); border-radius: var(--radius-md);
}
.who b { display: block; font-size: 13.5px; }
.who span { color: #C7D2DE; font-size: 12px; }
.side nav { padding: 8px 12px; overflow: auto; flex: 1; }
.nav-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: transparent; color: #C7D2DE; border: 0;
  border-radius: var(--radius-sm); padding: 9px 10px; margin-bottom: 2px;
  font-weight: 650; text-align: left;
}
.nav-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-btn.active { background: var(--orange-500); color: #fff; }
.nav-btn .count {
  margin-left: auto; background: rgba(255,255,255,.16);
  border-radius: 99px; padding: 0 7px; font-size: 11px;
}
.side-foot { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.interloc {
  background: rgba(255,255,255,.05); border-radius: var(--radius-md); padding: 10px 12px;
}
.interloc .lbl { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); }
.interloc b { display: block; margin-top: 4px; font-size: 13px; }
.interloc span { color: #C7D2DE; font-size: 12px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 62px; flex: 0 0 62px; background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
  position: sticky; top: 0; z-index: 5;
}
.top h1 { font-size: 16px; color: var(--navy-900); }
.top .spacer { flex: 1; }
.burger { display: none; }
.content { padding: 22px 28px 64px; max-width: 1080px; }
.banner {
  background: var(--orange-050); color: var(--navy-900);
  border-bottom: 1px solid var(--orange-100);
  padding: 10px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; }
.card, .panel {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card { padding: 14px 16px; }
.card .k { color: var(--gray-600); font-size: 12px; }
.card .v { font-size: 26px; font-weight: 750; color: var(--navy-900); margin-top: 4px; }
.panel { padding: 16px 18px; margin-bottom: 14px; }
.panel h2, .block-title { font-size: 16px; color: var(--navy-900); margin-bottom: 8px; }
.caps { margin: 0; padding-left: 18px; color: var(--gray-800); }
.caps li { margin: 4px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 12px; font-weight: 680; background: var(--orange-500); color: #fff;
}
.btn:hover { background: var(--orange-600); }
.btn.secondary { background: #fff; color: var(--navy-900); border-color: var(--gray-200); }
.btn.secondary:hover { background: var(--gray-50); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn.danger { background: var(--white); color: var(--red-600); border-color: var(--red-100); }
.btn.small, .btn-sm { padding: 5px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-600); font-weight: 700; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr.click:hover td { background: var(--navy-050); cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; border-radius: 99px;
  padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.b-navy { background: var(--navy-100); color: var(--navy-800); }
.b-green { background: var(--green-100); color: var(--green-600); }
.b-red { background: var(--red-100); color: var(--red-600); }
.b-amber { background: var(--amber-100); color: var(--amber-600); }
.b-gray { background: var(--gray-100); color: var(--gray-600); }
.b-orange { background: var(--orange-100); color: var(--orange-600); }

.callout {
  background: var(--amber-100); color: var(--navy-900);
  border-radius: var(--radius-md); padding: 10px 12px; margin: 8px 0 14px;
}
.callout.navy { background: var(--navy-050); }
.muted { color: var(--gray-600); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 12.5px; font-weight: 680; color: var(--navy-900); }
input, select, textarea {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; color: var(--gray-800);
}
textarea { min-height: 84px; resize: vertical; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; }
.dl dt { color: var(--gray-600); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 99px; padding: 6px 12px; font-weight: 680;
}
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.overlay {
  position: fixed; inset: 0; background: rgba(10, 26, 46, .46);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 30;
}
.modal {
  width: min(560px, 100%); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 18px;
}
.modal h2 { font-size: 18px; color: var(--navy-900); margin-bottom: 12px; }
.hero {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 16px 18px; margin: 14px 0;
}
.hero .k { display: block; color: var(--orange-600); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero .v { display: block; font-size: 34px; font-weight: 750; color: var(--navy-900); line-height: 1.1; margin: 2px 0; }
.hero:hover { border-color: var(--orange-500); }
.task {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.task:last-child { border-bottom: 0; padding-bottom: 0; }
.task-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 40;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-md); max-width: 360px;
}
.public {
  max-width: 760px; margin: 0 auto; padding: 28px 20px 64px;
}
.public-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.public-bar img { height: 32px; background: #fff; border-radius: 8px; padding: 6px 8px; border: 1px solid var(--gray-200); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 22px; }
  .login-hero h1 { font-size: 28px; }
  .side { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s ease; }
  .side.open { transform: none; }
  .burger { display: inline-flex; }
  .grid, .fields, .dl { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .top { padding: 0 12px; }
}

/* --- Additions for the Symfony app (links styled as buttons, form errors) --- */
a.nav-btn, a.btn, a.account, a.hero, a.linkish { text-decoration: none; }
a.btn { display: inline-block; }
a.hero { color: inherit; }
a.nav-btn { box-sizing: border-box; }
.side-foot form { margin-top: 10px; }
.field ul { margin: 2px 0 0; padding: 0; list-style: none; color: var(--red-600); font-size: 12.5px; }
.field .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.toast.is-hidden { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.field-label { font-size: 12.5px; font-weight: 680; color: var(--navy-900); }
.required.field-label::after { content: " *"; color: var(--orange-600); }
.form-errors { margin-bottom: 12px; }
.toast-error { background: var(--red-600); }
label.check { display: flex; gap: 8px; align-items: center; }

/* Show / hide password (symfony/ux-toggle-password): button inside the field, on the right */
.toggle-password-container input { width: 100%; padding-right: 96px; }
.toggle-password-container .toggle-password-button {
    top: 50%; right: 6px; height: auto; transform: translateY(-50%);
    padding: 4px 8px; border-radius: var(--radius-sm);
    color: var(--navy-700); font-size: 12.5px; font-weight: 650;
}
.toggle-password-container .toggle-password-button:hover { background: var(--navy-050); }
.toggle-password-container .toggle-password-icon { width: 15px; height: 15px; }

/* Modal (Turbo Frame "modal"): scrolls when the form is taller than the screen */
.modal { max-height: calc(100vh - 48px); overflow: auto; }
.modal .fields { margin-top: 4px; }
