/* ─────────────────────────────────────────────────────────────────────────
 * auth-design.css — Login + Company Select redesign (proto → crud)
 * Preuzet dizajn iz erp-component-proto, prilagođen za crud SPA.
 * Koristi data-theme="light/dark" koji app već postavi iz crud_color_scheme.
 * ───────────────────────────────────────────────────────────────────────── */

/* ── HK Requisite font faces ─────────────────────────────────────────────── */
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-Thin.woff2') format('woff2'); font-weight: 100; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-ExtraLight.woff2') format('woff2'); font-weight: 200; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-Light.woff2') format('woff2'); font-weight: 300; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap }
@font-face { font-family: 'HK Requisite'; src: url('../assets/fonts/HKRequisite-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap }
@font-face { font-family: 'ABC Favorit Mono'; src: url('../assets/fonts/ABCFavoritMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'ABC Favorit Mono'; src: url('../assets/fonts/ABCFavoritMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap }

/* ── Auth-specific CSS vars (light) ──────────────────────────────────────── */
:root {
  --auth-font:          'HK Requisite', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --auth-card:          #ffffff;
  --auth-heading:       #1e1f2d;
  --auth-text:          #687382;
  --auth-teal:          #73a9b7;
  --auth-btn:           #134551;
  --auth-btn-hover:     #0e353f;
  --auth-input-bg:      #f8f8f8;
  --auth-input-border:  #e8e9eb;
  --auth-toggle-bg:     #f0f0f0;
  --auth-toggle-active: #ffffff;
  --auth-toggle-shadow: 0 1px 1px rgba(0,0,0,.08);
  --auth-page-bg:       #0b2830;
  --auth-logo-ink:      #1e1f2d;
  --auth-delete:        #eb4753;
  /* Brand logo tokens (novi infos Office logo) */
  --logo-accent:        #2A88F4;
  --logo-ink:           #1D2025;

  --cs-firm-bg:         #f8f8f8;
  --cs-firm-border:     #e8e9eb;
  --cs-firm-name:       #133238;
  --cs-select-btn:      #5b94a6;
  --cs-select-hover:    #4d7f90;
  --cs-search-bg:       #f8f8f8;
  --cs-icon-bg:         #133238;
  --cs-online-dot:      #22c55e;
  --cs-search-btn-bg:   #ffffff;
}
[data-theme="dark"] {
  --auth-card:          #1c1f21;
  --auth-heading:       #fafafb;
  --auth-text:          #919dac;
  --auth-input-bg:      #191c1f;
  --auth-input-border:  #22292f;
  --auth-toggle-bg:     #242a2e;
  --auth-toggle-active: #3a4147;
  --auth-toggle-shadow: 0 1px 2px rgba(0,0,0,.35);
  --auth-logo-ink:      #fafafb;
  --logo-accent:        #58a1f4;
  --logo-ink:           #e8edf2;

  --cs-firm-bg:         #191c1f;
  --cs-firm-border:     #22292f;
  --cs-firm-name:       #c8d4dc;
  --cs-search-bg:       #191c1f;
  --cs-icon-bg:         #1c3d45;
  --cs-select-btn:      #4d8a9c;
  --cs-select-hover:    #3d7080;
  --cs-search-btn-bg:   #2c3440;
}

/* ──────────────────────────────────────────────────────────────────────────
 * AUTH PAGE WRAP — fullscreen overlay
 * ──────────────────────────────────────────────────────────────────────────*/
.auth-page-wrap {
  position: fixed;
  inset: 0;
  background: var(--auth-page-bg) url('../assets/login-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 999;
  overflow-y: auto;
  font-family: var(--auth-font);
}
.auth-page-inner {
  display: flex;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  gap: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
 * CARD (shared by login + company select)
 * ──────────────────────────────────────────────────────────────────────────*/
.auth-card {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  height: min(874px, calc(100vh - 40px));
  background: var(--auth-card);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 40px rgba(6,26,30,.12);
  overflow-y: auto;
  box-sizing: border-box;
  transition: max-width .35s cubic-bezier(.4,0,.2,1);
}
.auth-card.auth-card--expanded {
  max-width: 1360px;
}

/* ── Top bar (logo + toggle) ─────────────────────────────────────────────── */
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
}
.auth-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Logo SVG ────────────────────────────────────────────────────────────── */
.auth-logo-svg {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

/* ── Theme toggle ────────────────────────────────────────────────────────── */
.auth-theme-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--auth-toggle-bg);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-tt-opt {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--auth-text);
  transition: background .15s, color .15s;
}
.auth-tt-opt.active {
  background: var(--auth-toggle-active);
  box-shadow: var(--auth-toggle-shadow);
  color: var(--auth-heading);
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.auth-avatar-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.auth-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}
.auth-avatar-wrap:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91,148,166,.35);
}
.auth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cs-icon-bg);
  color: #fff;
  font-family: var(--auth-font);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cs-online-dot);
  border: 2px solid var(--auth-card);
  pointer-events: none;
}

/* ── Avatar dropdown menu ────────────────────────────────────────────────── */
.auth-avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--auth-card);
  border: 1px solid var(--auth-input-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(6,26,30,.16);
  z-index: 20;
}
.auth-avatar-menu-name {
  padding: 8px 12px 6px;
  font-family: var(--auth-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--auth-input-border);
  margin-bottom: 4px;
}
.auth-avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-heading);
  text-align: left;
  transition: background .12s;
}
.auth-avatar-menu-item i { font-size: 16px; color: var(--auth-text); }
.auth-avatar-menu-item:hover { background: var(--auth-input-bg); }
.auth-avatar-menu-item:focus-visible {
  outline: none;
  background: var(--auth-input-bg);
}

/* ── Copyright ───────────────────────────────────────────────────────────── */
.auth-copy {
  font-size: 14px;
  color: var(--auth-text);
  width: 100%;
  margin: 0;
  font-family: var(--auth-font);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
 * LOGIN FORM
 * ──────────────────────────────────────────────────────────────────────────*/
.auth-login-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}
.auth-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.auth-login-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.32px;
  line-height: 1.1;
  color: var(--auth-heading);
  font-family: var(--auth-font);
}
.auth-login-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16px;
  color: var(--auth-text);
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-field-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-field-lbl label {
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-heading);
  font-family: var(--auth-font);
}
.auth-req {
  color: var(--auth-teal);
}

/* ── Input box ───────────────────────────────────────────────────────────── */
.auth-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 12px 12px 12px 16px;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input-box:focus-within {
  background: var(--auth-card);
  border: 1.6px solid var(--auth-teal);
  box-shadow: 0 0 0 4px rgba(115,169,183,.20);
  padding-left: 15.4px;
}
[data-theme="dark"] .auth-input-box:focus-within {
  background: var(--auth-input-bg);
  box-shadow: 0 0 0 4px rgba(115,169,183,.15);
}
.auth-input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--auth-font);
  font-size: 16px;
  color: var(--auth-heading);
}
/* Kill any inherited Bootstrap/browser blue glow — focus lives on the parent box */
.auth-input-box input:focus,
.auth-input-box input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.auth-input-box input::placeholder {
  color: var(--auth-text);
  font-style: italic;
  opacity: 0.8;
}
.auth-eye-btn {
  border: none;
  background: transparent;
  color: var(--auth-text);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color .12s;
}
.auth-eye-btn:hover { color: var(--auth-heading); }

/* ── Inline validation ───────────────────────────────────────────────────── */
.auth-field-error {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-delete);
  line-height: 1.4;
}
.auth-field--invalid .auth-field-error {
  display: block;
}
.auth-field--invalid .auth-input-box {
  border-color: var(--auth-delete) !important;
  box-shadow: 0 0 0 2px rgba(235,71,83,.18) !important;
}

/* ── Error banner (API errors) ───────────────────────────────────────────── */
.auth-error-banner {
  width: 100%;
  padding: 10px 14px;
  background: rgba(235,71,83,.1);
  border: 1px solid rgba(235,71,83,.3);
  border-radius: 8px;
  color: var(--auth-delete);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--auth-font);
}
.auth-error-banner.d-none { display: none !important; }

/* ── Submit button ───────────────────────────────────────────────────────── */
.auth-btn-login {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--auth-btn);
  color: #ffffff;
  font-family: var(--auth-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  transition: background .12s;
  flex-shrink: 0;
}
.auth-btn-login:hover { background: var(--auth-btn-hover); }
.auth-btn-login:active { background: #0a2a33; }
.auth-btn-login:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ── Visual panel (right) ────────────────────────────────────────────────── */
.auth-login-visual {
  flex: 1 1 0;
  min-width: 0;
  max-width: 680px;
  height: min(874px, calc(100vh - 40px));
  border-radius: 12px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}
.auth-visual-txt {
  max-width: 426px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  margin: 0;
  font-family: var(--auth-font);
}

/* ──────────────────────────────────────────────────────────────────────────
 * COMPANY SELECT
 * ──────────────────────────────────────────────────────────────────────────*/

/* ── State A (compact list) ──────────────────────────────────────────────── */
.cs-state-a {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.cs-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}
.cs-building-icon {
  width: 56px;
  height: 56px;
  background: var(--cs-icon-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(19,50,56,.08);
  flex-shrink: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}
.cs-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.64px;
  line-height: normal;
  color: var(--auth-heading);
  font-family: var(--auth-font);
  text-align: center;
}
.cs-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16px;
  color: var(--auth-text);
  text-align: center;
  max-width: 344px;
}

/* ── Firm rows (State A) ─────────────────────────────────────────────────── */
.cs-firms-a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cs-firm-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--cs-firm-bg);
  border: 1px solid var(--cs-firm-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
.cs-firm-row:hover {
  border-color: var(--cs-select-btn);
  box-shadow: 0 0 0 3px rgba(91,148,166,.10);
}
.cs-firm-row.cs-selected {
  border-color: var(--cs-select-btn);
  box-shadow: 0 0 0 3px rgba(91,148,166,.16);
}
.cs-firm-av {
  width: 48px;
  height: 48px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-family: var(--auth-font);
  letter-spacing: 0.02em;
}
.cs-firm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-firm-name {
  font-family: var(--auth-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: var(--cs-firm-name);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.cs-firm-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--auth-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.24px;
  color: var(--auth-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-firm-addr i { font-size: 11px; flex-shrink: 0; }
.cs-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--cs-firm-border);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.cs-firm-row.cs-selected .cs-radio {
  border-color: var(--cs-select-btn);
  background: var(--cs-select-btn);
}
.cs-firm-row.cs-selected .cs-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

/* ── Shops section in State A ────────────────────────────────────────────── */
.cs-section-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--auth-text);
  font-family: var(--auth-font);
  margin-bottom: -4px;
}

/* ── "Show all" button ───────────────────────────────────────────────────── */
.cs-show-all {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: var(--auth-btn);
  color: #ffffff;
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14px;
  text-transform: uppercase;
  transition: background .12s;
  flex-shrink: 0;
}
.cs-show-all:hover  { background: var(--auth-btn-hover); }
.cs-show-all:active { background: #0a2a33; }

/* ── State B (expanded grid) ─────────────────────────────────────────────── */
.cs-state-b {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  flex-shrink: 0;
}
.cs-b-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ── Search ──────────────────────────────────────────────────────────────── */
.cs-search-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--cs-search-bg);
  border: 1px solid var(--cs-firm-border);
  border-radius: 12px;
  padding: 4px;
  transition: border-color .15s, box-shadow .15s;
}
/* Discrete focus indicator (prototype teal), never Bootstrap blue */
.cs-search-wrap:focus-within {
  border-color: var(--cs-select-btn);
  box-shadow: 0 0 0 3px rgba(91,148,166,.12);
}
.cs-search-input {
  width: 360px;
  height: 36px;
  padding: 0 12px;
  background: transparent;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-heading);
  outline: none;
}
/* Kill any inherited Bootstrap/browser blue glow on the search field */
.cs-search-input:focus,
.cs-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.cs-search-input::placeholder {
  color: var(--auth-text);
  opacity: 0.8;
}
.cs-search-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--cs-search-btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--auth-text);
  font-size: 16px;
  flex-shrink: 0;
  transition: color .12s;
}
.cs-search-btn:hover { color: var(--auth-heading); }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}
.cs-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--cs-firm-bg);
  border: 0.6px solid var(--cs-firm-border);
  border-radius: 8px;
  padding: 20px 12px 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.cs-grid-card:hover {
  border-color: var(--cs-select-btn);
  box-shadow: 0 2px 12px rgba(91,148,166,.14);
}
.cs-grid-card.cs-hidden-card { display: none !important; }

.cs-grid-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.cs-grid-av {
  width: 60px;
  height: 60px;
  border-radius: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-family: var(--auth-font);
  letter-spacing: 0.02em;
}
.cs-grid-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.cs-grid-name {
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.28px;
  color: var(--cs-firm-name);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cs-grid-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--auth-font);
  font-size: 11px;
  font-weight: 400;
  color: var(--auth-text);
  white-space: nowrap;
}
.cs-grid-addr i { font-size: 10px; flex-shrink: 0; }

.cs-izaberi-btn {
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: var(--cs-select-btn);
  color: #ffffff;
  font-family: var(--auth-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13px;
  text-transform: uppercase;
  transition: background .12s;
  flex-shrink: 0;
  padding: 0;
}
.cs-izaberi-btn:hover  { background: var(--cs-select-hover); }
.cs-izaberi-btn:active { background: #3d7080; }

/* ── Admin panel link (superadmin) ───────────────────────────────────────── */
.cs-admin-link {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--cs-firm-border);
}
.cs-admin-btn {
  width: 100%;
  height: 40px;
  border: 1px solid var(--cs-firm-border);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--auth-text);
  font-family: var(--auth-font);
  font-size: 13px;
  font-weight: 600;
  transition: background .12s, border-color .12s;
}
.cs-admin-btn:hover {
  background: var(--cs-firm-bg);
  border-color: var(--cs-select-btn);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.cs-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--auth-btn);
  color: white;
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
  z-index: 1100;
}
.cs-toast.cs-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.cs-hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-login-visual { display: none; }
  .auth-card { max-width: none; flex: 1; }
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
  .auth-card.auth-card--expanded { max-width: 900px; }
  .cs-state-b { max-width: none; }
}
@media (max-width: 600px) {
  .auth-page-wrap { padding: 0; }
  .auth-card { border-radius: 0; min-height: 100vh; height: auto; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-search-input { width: 200px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 20px; }
}
@media (max-width: 1100px) {
  .cs-grid { grid-template-columns: repeat(4, 1fr); }
}
