/* Sign-in screen (web/login.html): the ARES suite layout shared with FacturAres, a brand panel beside the form,
   in this app's colours. Always light, like FacturAres, whatever the system theme. */
.auth-split {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f4f2ff; --ink: #111827; --ink-2: #374151; --ink-3: #6b7280;
  --line: #d1d5db; --focus: #6d5efc; color-scheme: light;
  background: var(--bg); color: var(--ink);
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

/* Brand panel */
.auth-aside { background: linear-gradient(150deg, #1d1a3a 0%, #4b3fc9 50%, #6d5efc 78%, #b45cf0 100%); color: #e6e3ff;
  padding: 3rem 3.25rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgb(255 255 255 / .07); }
.auth-aside::before { content: ""; position: absolute; left: -90px; top: 38%; width: 220px; height: 220px; border-radius: 50%; background: rgb(255 95 162 / .10); }
.auth-logo { height: 72px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.auth-copy { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 1.85rem; line-height: 1.2; margin: 0 0 1rem; letter-spacing: -.02em; font-weight: 700; max-width: 28rem; }
.auth-aside p { margin: 0 0 1.5rem; color: #d4cfff; font-size: 1.02rem; max-width: 30rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; gap: .7rem; align-items: flex-start; color: #ece9ff; }
.auth-points svg { flex: none; margin-top: 2px; }
.auth-foot { font-size: .8rem; color: #b9b1ff; position: relative; z-index: 1; }

/* Form side */
.auth-main { display: flex; flex-direction: column; padding: 1.5rem 2rem 2.5rem; }
.auth-panel { width: 100%; max-width: 420px; margin: auto; padding-top: 1.5rem; }
.auth-panel h1 { font-size: 1.6rem; letter-spacing: -.015em; font-weight: 650; margin: 0 0 .35rem; }
.auth-panel section > p.muted { margin: 0 0 1.1rem; color: var(--ink-3); }
.auth-panel .card { background: var(--surface); border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.5rem;
  box-shadow: 0 4px 12px rgb(17 24 39 / .06), 0 2px 4px rgb(17 24 39 / .04); }
.auth-panel .stack { gap: 1.1rem; }
.auth-panel .stack label { font-size: .82rem; font-weight: 500; color: var(--ink-2); gap: .35rem; }
.auth-panel input:not([type="checkbox"]) { padding: .6rem .8rem; font-size: .95rem; border: 1px solid var(--line); border-radius: 7px; }
.auth-panel input:focus-visible { outline: none; border-color: #6d5efc; box-shadow: 0 0 0 4px rgb(109 94 252 / .25); }
.auth-panel .btn { border-radius: 7px; }
.auth-panel .btn-primary { width: 100%; padding: .65rem 1.1rem; font-size: .92rem; font-weight: 600; color: #fff; border: 0;
  background: #6d5efc; box-shadow: 0 1px 2px rgb(17 24 39 / .08); }
.auth-panel .btn-primary:hover { background: #5a4be6; filter: none; }
.auth-panel .btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(109 94 252 / .3); }
.auth-panel .btn-sso { border: 1px solid var(--line); background: var(--surface); padding: .6rem 1rem; }
.auth-panel .stack > a.small { text-align: center; }
.auth-panel section > p.auth-forgot { text-align: center; margin: 1.25rem 0 0; color: var(--ink-3); }
.auth-panel .auth-about { margin-top: 1rem; }
.auth-panel .demo-banner { background: #fffbeb; border-color: #fcd34d; }
.auth-panel .demo-badge { background: #d97706; border-radius: 6px; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 1.5rem 1.5rem 1.75rem; }
  .auth-aside h2 { font-size: 1.35rem; margin-top: 1rem; }
  .auth-aside .auth-points, .auth-aside .auth-foot { display: none; }
  .auth-aside p { margin-bottom: 0; }
}
