/* SDLC live preview login - same family as the TRS retail_theme login:
   warm paper background, one white card with a coloured top rule, slab-serif
   wordmark, dashed "path" divider. --accent / --accent-ink are set per app. */
:root {
  --navy: #123670;
  --ink: #1a1a1a;
  --muted: #6b5f55;
  --line: #e3d8cc;
  --paper: #ffffff;
  --accent: #ffd23f;
  --accent-ink: #123670;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.sdl {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #f3ece4 0%, #e9ddd0 100%);
  background-attachment: fixed;
}

.sdl-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 16px;
}

/* ---------------------------------------------------------------- card */
.sdl-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 34px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .05),
              0 24px 48px -24px rgba(60, 40, 20, .35);
}

.sdl-logo {
  display: block;
  width: 50px; height: 50px;
  margin: 0 0 16px;
  padding: 6px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, #000);
}
.sdl-logo-text {
  display: grid; place-items: center;
  padding: 0;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  background: var(--navy); color: #ffd23f; border-color: var(--navy);
}

.sdl-mark {
  margin: 0 0 6px;
  font-family: Rockwell, 'Roboto Slab', 'Zilla Slab', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
}
.sdl-sub {
  margin: 0;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}

.sdl-path {
  position: relative;
  height: 0;
  margin: 16px 0 20px;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 75%, transparent);
}
.sdl-path-end {
  position: absolute; right: -2px; top: -11px;
  padding-left: 6px;
  font-size: 16px; line-height: 1;
  color: color-mix(in srgb, var(--accent) 65%, #1a1a1a);
  background: var(--paper);
}

.sdl-pitch {
  margin: 0 0 20px;
  font-size: 14px; line-height: 1.55;
  color: var(--muted);
}

.sdl-alert {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; line-height: 1.45;
  background: #fdecec; color: #8a1c1c; border: 1px solid #f6c9c9;
}
.sdl-alert-ok { background: #e9f8f0; color: #155c3a; border-color: #bfe8d2; }

/* ---------------------------------------------------------------- buttons */
.sdl-demo-form { margin: 0; }
.sdl-btn {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink);
  transition: filter .15s ease;
}
.sdl-btn span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.sdl-btn:hover { filter: brightness(.93); }
.sdl-btn:hover span { transform: translateX(3px); }
.sdl-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

.sdl-creds { margin: 12px 0 20px; text-align: center; font-size: 12.5px; color: var(--muted); }
.sdl-creds code {
  padding: 1px 6px; border-radius: 5px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 12px; font-weight: 600;
  background: #f6f1eb; color: var(--navy); border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- staff form */
.sdl-staff { border-top: 1px solid var(--line); padding-top: 14px; }
.sdl-staff summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.sdl-staff summary::-webkit-details-marker { display: none; }
.sdl-staff summary::after { content: "▾"; font-size: 12px; transition: transform .2s ease; }
.sdl-staff[open] summary::after { transform: rotate(180deg); }
.sdl-staff-form { display: grid; gap: 6px; margin-top: 14px; }
.sdl-staff-form label {
  margin-top: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.sdl-staff-form input[type=text],
.sdl-staff-form input[type=password] {
  width: 100%; padding: 10px 12px;
  font-family: inherit; font-size: 15px; line-height: 1.3; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sdl-staff-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 54, 112, .15);
}
.sdl-btn-staff {
  margin-top: 14px;
  background: var(--navy); border-color: var(--navy); color: #fff;
}

.sdl-foot {
  margin-top: 20px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); text-align: center;
}

/* ---------------------------------------------------------------- app switcher */
.sdl-apps { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sdl-apps-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sdl-apps-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 480px; }
.sdl-chip {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 10px -6px rgba(60, 40, 20, .4);
  transition: transform .15s ease;
}
.sdl-chip img { width: 24px; height: 24px; object-fit: contain; }
.sdl-chip:hover, .sdl-chip:focus-visible { transform: translateY(-2px); }
.sdl-chip.is-current { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 420px) {
  .sdl-card { padding: 28px 22px 22px; }
  .sdl-mark { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sdl-btn span, .sdl-chip { transition: none; }
}
