/* Kabera Global CRM: sign-in and access pages (index.php, no_access.php).
   A frosted-glass card over slowly drifting smoke, in the logo's colours
   (user/images/logo.png: silver lettering, amber #f9ae0c bar).
   Tokens come from user/css/kabera-theme.css (load that first). */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--k-font);
  font-size: var(--k-text-md);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
  background: #161b2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #ffd27a; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; letter-spacing: inherit; }

/* The drifting smoke background lives in user/css/kabera-fog.css (shared with the lock screen). */

/* ---------- Page frame ---------- */

.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 32px 16px 20px;
}
.auth-foot {
  padding-top: 16px;
  font-size: var(--k-text-xs);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---------- Glass card ---------- */

.glass {
  align-self: center;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 30px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 55%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 30px 80px rgba(5, 8, 18, 0.45),
    0 2px 8px rgba(5, 8, 18, 0.2);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  animation: card-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
/* Children arrive one after another. "backwards" so nothing is left transformed
   afterwards: a leftover transform would layer later sections over the role panel. */
.glass > * { animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.glass > :nth-child(1) { animation-delay: 0.12s; }
.glass > :nth-child(2) { animation-delay: 0.18s; }
.glass > :nth-child(3) { animation-delay: 0.24s; }
.glass > :nth-child(4) { animation-delay: 0.30s; }
.glass > :nth-child(5) { animation-delay: 0.36s; }
.glass > :nth-child(6) { animation-delay: 0.42s; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.auth-logo { display: block; width: 185px; height: 40px; margin-bottom: 30px; }  /* small raster logo: keep its own size */
.title {
  margin: 0 0 6px;
  font-family: var(--k-font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--k-tracking-tight);
}
.subtitle { margin: 0 0 28px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Fields ---------- */

.field { margin-bottom: 16px; }
.label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--k-text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.control { position: relative; }
.control-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.control input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: var(--k-text-md);
  outline: none;
  transition: border-color var(--k-fast) var(--k-ease), background var(--k-fast) var(--k-ease), box-shadow var(--k-fast) var(--k-ease);
}
.control input::placeholder { color: rgba(255, 255, 255, 0.45); }
.control input:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.control input:focus {
  border-color: rgba(249, 174, 12, 0.85);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(249, 174, 12, 0.22);
}
.control input[aria-invalid="true"] { border-color: #ff8a80; }
.control:focus-within .control-icon { color: #ffd27a; }

/* ---------- Role picker: icon tile + name, opening a two-column glass panel ---------- */

.picker { position: relative; }
.picker.open { z-index: 40; }
.picker-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 46px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: border-color var(--k-fast) var(--k-ease), background var(--k-fast) var(--k-ease), box-shadow var(--k-fast) var(--k-ease);
}
.picker-trigger:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.picker-trigger:focus-visible,
.picker.open .picker-trigger {
  border-color: rgba(249, 174, 12, 0.85);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(249, 174, 12, 0.22);
}
.picker-trigger[aria-invalid="true"] { border-color: #ff8a80; }
.picker-tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s var(--k-ease), color 0.25s var(--k-ease), box-shadow 0.25s var(--k-ease);
}
.picker-tile svg { width: 20px; height: 20px; }
.picker.has-value .picker-tile {
  background: linear-gradient(140deg, #ffd06a, #f9ae0c 55%, #f08a00);
  color: #1d1600;
  box-shadow: 0 6px 18px rgba(249, 174, 12, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.picker-tile.pop { animation: tile-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tile-pop { 0% { transform: scale(0.82); } 100% { transform: scale(1); } }
.picker-text { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.25; }
.picker-value { font-size: var(--k-text-md); color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker.has-value .picker-value { color: #fff; font-weight: 600; }
.picker-team { font-size: var(--k-text-xs); color: rgba(255, 255, 255, 0.6); }
.picker-team:empty { display: none; }
.chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: transform 0.2s var(--k-ease);
}
.picker.open .chevron { transform: rotate(180deg); }

.picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #1e2437, #161a28);   /* solid: nothing behind shows through */
  box-shadow: 0 24px 60px rgba(3, 6, 15, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s var(--k-ease), transform 0.2s var(--k-ease), visibility 0s linear 0.2s;
}
.picker.drop-up .picker-panel { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(6px) scale(0.98); }
.picker.open .picker-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.16s var(--k-ease), transform 0.2s var(--k-ease), visibility 0s;
}
.picker-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.picker-group-label {
  padding: 6px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s var(--k-ease);
}
.opt-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.12s var(--k-ease), color 0.12s var(--k-ease);
}
.opt-icon svg { width: 17px; height: 17px; }
.opt-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-check { display: none; flex: none; width: 16px; height: 16px; margin-left: auto; color: #ffd27a; }
.picker-option.is-active { background: rgba(255, 255, 255, 0.1); }
.picker-option.is-active .opt-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.picker-option[aria-selected="true"] { color: #ffd27a; font-weight: 600; }
.picker-option[aria-selected="true"] .opt-icon { background: rgba(249, 174, 12, 0.22); color: #ffd27a; }
.picker-option[aria-selected="true"] .opt-check { display: block; }
@media (max-width: 480px) {
  .picker-panel { left: -10px; right: -10px; gap: 2px 4px; padding: 6px; }
  .picker-option { gap: 8px; padding: 6px; }
  .opt-icon { width: 28px; height: 28px; }
}
@media (max-width: 330px) {
  .picker-panel { grid-template-columns: 1fr; }
}
.control.has-reveal input { padding-right: 50px; }
.reveal {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.reveal:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.reveal:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(249, 174, 12, 0.5); }
.reveal svg { width: 19px; height: 19px; }

.field-error { margin: 6px 2px 0; font-size: var(--k-text-sm); color: #ffb4ab; }
.field-error:empty { display: none; }

/* ---------- Button ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-size: var(--k-text-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--k-ease), box-shadow 0.2s var(--k-ease), background-position 0.4s var(--k-ease);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22, 27, 43, 0.9), 0 0 0 5px #ffd27a; }
.btn-primary {
  width: 100%;
  margin-top: 10px;
  color: #1d1600;
  background: linear-gradient(120deg, #ffd06a 0%, #f9ae0c 45%, #f08a00 100%);
  background-size: 160% 100%;
  background-position: 0% 0;
  box-shadow: 0 10px 30px rgba(249, 174, 12, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(249, 174, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
/* Light sweeps across on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--k-ease);
}
.btn-primary:hover::after { left: 120%; }
.btn-primary[disabled] { cursor: progress; opacity: 0.85; transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--k-ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(29, 22, 0, 0.25);
  border-top-color: #1d1600;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 128, 0.35);
  background: rgba(255, 69, 58, 0.14);
  color: #ffd1cc;
  font-size: var(--k-text-sm);
}
.alert[hidden] { display: none; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #ff8a80; }

.help { margin: 22px 0 0; font-size: var(--k-text-sm); color: rgba(255, 255, 255, 0.6); text-align: center; }

/* ---------- Split layout (desktop): showcase on the left, sign-in on the right ---------- */

.split { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.showcase { display: none; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr); }
  .showcase { display: flex; flex-direction: column; min-width: 0; padding: 44px 56px 30px; }
  .split .auth { background: linear-gradient(90deg, rgba(8, 10, 18, 0) 0%, rgba(8, 10, 18, 0.3) 40%); }
  .split .auth-foot,
  .card-logo { display: none; }
}

.showcase .auth-logo { margin: 0; animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s backwards; }
/* Auto margins here and on the footer centre the headline, preview and highlights vertically */
.showcase-copy { margin-top: auto; padding-top: 28px; max-width: 580px; animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards; }
.showcase-title {
  margin: 0 0 14px;
  font-family: var(--k-font-display);
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #fff;
}
.showcase-title .hl {
  background: linear-gradient(100deg, #ffd06a 0%, #f9ae0c 45%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase-sub { margin: 0; max-width: 32em; font-size: 17px; color: rgba(255, 255, 255, 0.72); }

/* Floating preview of the CRM: laid out once on a 540x400 canvas, scaled to fit
   (--k is set by the page script from the available width). */
.stage {
  --px: 0px;
  --py: 0px;
  --k: 1;
  position: relative;
  flex: none;
  width: min(100%, 540px);
  height: calc(400px * var(--k));
  margin: 34px 0 26px;
}
.stage-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 540px;
  height: 400px;
  transform: scale(var(--k));
  transform-origin: top left;
}
.mock {
  position: absolute;
  transform: translate3d(calc(var(--px) * var(--d)), calc(var(--py) * var(--d)), 0);
  scale: 1;
  transition: scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mock-in {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px rgba(4, 7, 16, 0.38);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  font-size: 13px;
  transition: border-color 0.5s var(--k-ease), box-shadow 0.5s var(--k-ease);
  animation: mock-enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, mock-float 7s ease-in-out 0.9s infinite alternate;
}
/* Highlighted card grows a little but keeps its layer, so it never covers a neighbour's content */
.mock.is-focus { scale: 1.045; }
.nowrap { white-space: nowrap; }
.mock.is-focus .mock-in {
  border-color: rgba(249, 174, 12, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 4px rgba(249, 174, 12, 0.14), 0 24px 56px rgba(4, 7, 16, 0.45);
}
.m-notify { top: 0;      right: 0;    width: 250px; }
.m-chart  { top: 70px;   left: 0;     width: 300px; }
.m-follow { top: 214px;  right: 0;    width: 262px; }
.m-ot     { bottom: 0;   left: 40px;  width: 240px; }
.m-sync   { bottom: 30px; right: 22px; }
.m-chart .mock-in  { animation-delay: 0.35s, 1.25s; animation-duration: 0.9s, 8s; }
.m-notify .mock-in { animation-delay: 0.5s, 1.4s;   animation-duration: 0.9s, 6.5s; }
.m-follow .mock-in { animation-delay: 0.65s, 1.55s; animation-duration: 0.9s, 7.5s; }
.m-ot .mock-in     { animation-delay: 0.8s, 1.7s;   animation-duration: 0.9s, 9s; }
.m-sync .mock-in   { animation-delay: 0.95s, 1.85s; animation-duration: 0.9s, 6s; }
@keyframes mock-enter { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mock-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }

.mock-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #30d158; animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); }
}

.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock-title { font-weight: 600; font-size: 14px; }
.mock-chip { padding: 2px 9px; border-radius: 999px; font-size: 11px; color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.1); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 0 2px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
  transform-origin: bottom;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.bars i.now { background: linear-gradient(180deg, #ffd06a, #f08a00); box-shadow: 0 6px 18px rgba(249, 174, 12, 0.4); }
.bars i:nth-child(1) { animation-delay: 0.7s; }
.bars i:nth-child(2) { animation-delay: 0.76s; }
.bars i:nth-child(3) { animation-delay: 0.82s; }
.bars i:nth-child(4) { animation-delay: 0.88s; }
.bars i:nth-child(5) { animation-delay: 0.94s; }
.bars i:nth-child(6) { animation-delay: 1s; }
.bars i:nth-child(7) { animation-delay: 1.06s; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.d1 { background: #f9ae0c; }
.dot.d2 { background: #9fb5e0; }
.dot.d3 { background: #ff8a6b; }

.mock-row { display: flex; align-items: center; gap: 11px; }
.mock-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.mock-icon svg { width: 17px; height: 17px; }
.mock-icon.amber { background: linear-gradient(140deg, #ffd06a, #f08a00); color: #1d1600; box-shadow: 0 6px 16px rgba(249, 174, 12, 0.35); }
.mock-icon.green { background: rgba(48, 209, 88, 0.2); color: #6ee797; border: 1px solid rgba(48, 209, 88, 0.35); }
.mock-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mock-text b { font-weight: 600; font-size: 13.5px; }
.mock-text small { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.mock-time { margin-left: auto; align-self: flex-start; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.mock-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #9fb5e0, #6b82b8);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}
.mock-btn {
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd06a, #f9ae0c 50%, #f08a00);
  color: #1d1600;
  font-size: 12px;
  font-weight: 600;
}
.steps { display: flex; gap: 5px; margin-top: 12px; }
.steps i { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.steps i.done { background: linear-gradient(90deg, #6ee797, #30d158); }

/* Rotating highlights */
.features { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 580px; animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s backwards; }
.feature-track { display: grid; min-width: 0; }
.feature {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--k-ease), transform 0.45s var(--k-ease);
  pointer-events: none;
}
.feature.is-active { opacity: 1; transform: none; pointer-events: auto; }
.feature b { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 600; color: #fff; }
.feature span { font-size: 14.5px; color: rgba(255, 255, 255, 0.7); }
.feature-dots { display: flex; gap: 8px; padding-bottom: 6px; }
.feature-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s var(--k-ease), background 0.3s var(--k-ease);
}
.feature-dots button[aria-pressed="true"] { width: 24px; background: #f9ae0c; }
.feature-dots button:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
.showcase-foot { margin: auto 0 0; padding-top: 22px; font-size: var(--k-text-xs); color: rgba(255, 255, 255, 0.55); }

/* Shorter laptop screens: tighten the showcase so everything fits */
@media (min-width: 1024px) and (max-height: 820px) {
  .showcase { padding-top: 32px; }
  .showcase-copy { padding-top: 20px; }
  .showcase-title { font-size: clamp(30px, 2.8vw, 40px); }
  .stage { width: min(100%, 470px); margin: 22px 0 18px; }
}
@media (min-width: 1024px) and (max-height: 680px) {
  .features { display: none; }
}
/* Very wide screens: keep showcase and card together instead of drifting apart */
@media (min-width: 1600px) {
  .split { width: 100%; max-width: 1560px; margin: 0 auto; }
  .split .auth { background: none; }
  .stage { width: min(100%, 610px); }
}

/* ---------- Message card (no_access.php) ---------- */

.glass.message { text-align: center; }
.glass.message .auth-logo { margin: 0 auto 28px; }
.message-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(249, 174, 12, 0.16);
  border: 1px solid rgba(249, 174, 12, 0.35);
  color: #ffd27a;
}
.message-icon svg { width: 28px; height: 28px; }
.glass.message .subtitle { margin-bottom: 24px; }
.glass.message .btn-primary { margin-top: 0; }
.glass.message .note { margin: 14px 0 0; font-size: var(--k-text-sm); color: rgba(255, 255, 255, 0.6); }

@media (max-width: 480px) {
  .glass { padding: 32px 22px 24px; border-radius: 24px; }
  .auth-logo { margin-bottom: 24px; }
  .title { font-size: 25px; }
}

/* Browsers without backdrop blur: a more solid card keeps text readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 33, 51, 0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .glass, .glass > *, .picker-tile.pop { animation: none !important; }
  .showcase *, .mock-in, .bars i { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}
