﻿/* ComptaGuide - Portail Client
   Fiche #01: Deep Blue Glass, logo SVG natif, overlay bleu nuit 85%. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --header-h: 56px;
  --footer-h: 42px;
  --panel-blue: rgba(6, 22, 51, 0.86);
  --panel-left: rgba(0, 46, 42, 0.76);
  --panel-border: rgba(129, 151, 190, 0.30);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: var(--cg-font); color: var(--cg-text-2); background: #050d18; overflow: hidden; font-size: 15px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.page-bg {
  position: fixed;
  inset: var(--header-h) 0 var(--footer-h);
  z-index: 0;
  background:
    linear-gradient(0deg, rgba(6, 16, 31, 0.85), rgba(6, 16, 31, 0.85)),
    url('/images/background_page_connection.webp') center / cover no-repeat;
  filter: grayscale(0.18) saturate(0.72) contrast(1.08);
}
.page-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(10, 37, 64, 0.24), rgba(3, 9, 18, 0.56) 72%); }

.topbar-login { position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 76px; background: rgba(24, 34, 52, 0.94); border-bottom: 1px solid rgba(255,255,255,.06); }
.top-brand { display: inline-flex; align-items: center; gap: 14px; color: rgba(244,247,255,.92); text-decoration: none; font-weight: 850; }
.top-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(0,179,126,.32)); }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: 8px; letter-spacing: -.02em; }
.brand-wordmark strong { color: #fff; font-size: 1.05rem; font-weight: 900; }
.brand-wordmark em,
.panel-wordmark em,
.footer-mark em { font-style: normal; font-weight: 900; background: linear-gradient(135deg, #00B37E 0%, #1D4ED8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-staff { position: relative; min-width: 154px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(0,179,126,.36); background: linear-gradient(135deg, rgba(0,179,126,.10), rgba(29,78,216,.10)); color: rgba(244,248,255,.94); text-decoration: none; font-size: .8rem; font-weight: 900; letter-spacing: .01em; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 0 1px rgba(255,255,255,.03), 0 0 24px rgba(0,179,126,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform var(--cg-transition-fast), border-color var(--cg-transition-fast), box-shadow var(--cg-transition-fast), color var(--cg-transition-fast); }
.top-staff::before { content: ''; position: absolute; inset: 1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 42%); opacity: .65; pointer-events: none; }
.top-staff::after { content: ''; position: absolute; width: 48px; height: 120%; left: -70px; top: -10%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); transition: left 450ms ease; }
.top-staff:hover { transform: translateY(-1px); border-color: rgba(0,179,126,.72); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px rgba(0,179,126,.15), 0 0 34px rgba(0,179,126,.24), 0 0 24px rgba(29,78,216,.16); }
.top-staff:hover::after { left: 115%; }

.login-stage { position: relative; z-index: 1; min-height: 100dvh; padding: var(--header-h) 0 var(--footer-h); display: grid; place-items: center; }
.login-card { width: 860px; height: 544px; display: grid; grid-template-columns: 310px 550px; overflow: hidden; border-radius: 18px; background: var(--panel-blue); border: 1px solid var(--panel-border); box-shadow: 0 28px 72px rgba(0,0,0,.5); backdrop-filter: blur(16px) saturate(145%); -webkit-backdrop-filter: blur(16px) saturate(145%); }
.brand-pane { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px; background: radial-gradient(circle at 50% 21%, rgba(0,179,126,.18), rgba(0,104,74,.07) 22%, transparent 43%), linear-gradient(180deg, rgba(0,22,22,.985), rgba(0,6,22,.995)); border-right: 1px solid rgba(255,255,255,.08); }
.brand-pane-logo { width: 115px; height: 115px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(0,179,126,.42)) drop-shadow(0 18px 34px rgba(0,0,0,.28)); margin-bottom: 20px; animation: logo-float 4.8s ease-in-out infinite; }
.brand-pane a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.brand-pane a::before {
  content: '';
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,179,126,.34) 0%, rgba(0,104,74,.16) 42%, transparent 72%);
  filter: blur(16px);
  opacity: .82;
  animation: logo-aura 4.8s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}
@keyframes logo-aura {
  0%, 100% { transform: translateY(0) scale(.96); opacity: .62; }
  50% { transform: translateY(-8px) scale(1.08); opacity: .9; }
}
.panel-wordmark { margin: 0; display: inline-flex; align-items: baseline; gap: 9px; letter-spacing: -.04em; line-height: 1; }
.panel-wordmark span { color: #fff; font-size: 1.7rem; font-weight: 950; }
.panel-wordmark em { font-size: 1.02rem; }
.brand-pane p { max-width: 230px; margin: 16px 0 30px; color: rgba(200,214,238,.54); font-size: .74rem; line-height: 1.55; }
.mini-benefits { width: 100%; display: grid; gap: 11px; }
.mini-benefits div { min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 18px; border-radius: 9px; border: 1px solid rgba(145,167,206,.13); background: rgba(255,255,255,.045); text-align: left; }
.line-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: #A8C7BC; flex-shrink: 0; }
.line-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-benefits b { color: rgba(235,242,255,.78); font-size: .72rem; line-height: 1.45; }

.form-pane { min-width: 0; padding: 44px 44px 30px; display: flex; flex-direction: column; }
.form-head { text-align: center; margin-bottom: 24px; }
.form-head h2 { margin: 0; color: #f4f7ff; font-size: 1.12rem; font-weight: 900; }
.form-head p { margin: 11px 0 0; color: rgba(191,206,233,.62); font-size: .86rem; }
.google-btn { width: 100%; height: 44px; border: 0; border-radius: 999px; background: #fff; color: #293241; display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-size: .9rem; font-weight: 750; cursor: pointer; }
.google-btn:hover { filter: brightness(1.02); }
.google-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.google-icon svg { width: 20px; height: 20px; display: block; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: rgba(174,188,214,.54); font-size: .72rem; font-weight: 900; }
.or-line::before, .or-line::after { content: ''; height: 1px; flex: 1; background: rgba(255,255,255,.1); }
.cx-alert { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .76rem; font-weight: 800; }
.cx-alert-error { color: #FCA5A5; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.32); }
.cx-alert-success { color: #00B37E; background: rgba(0,179,126,.12); border: 1px solid rgba(0,179,126,.3); }
.login-form { display: grid; gap: 11px; }
.field-block[hidden], .staff-field[hidden] { display: none !important; }
.field-block { display: grid; gap: 6px; }
.field-block label { color: rgba(232,238,250,.78); text-transform: uppercase; font-size: .72rem; font-weight: 900; letter-spacing: .035em; }
.field-block input { width: 100%; height: 39px; border-radius: 9px; border: 1px solid rgba(195,209,236,.14); background: rgba(255,255,255,.065); color: #f5f8ff; outline: none; padding: 0 15px; font: inherit; font-size: .86rem; }
.field-block input::placeholder { color: rgba(170,188,218,.38); }
.field-block input:focus { border-color: rgba(0,179,126,.72); box-shadow: 0 0 0 3px rgba(0,179,126,.13); background: rgba(0,179,126,.05); }
.field-block input.invalid { border-color: rgba(239,68,68,.75); box-shadow: 0 0 0 3px rgba(239,68,68,.11); }
.field-block small { min-height: 12px; color: #FCA5A5; font-size: .66rem; }
.password-box { position: relative; }
.password-box input { padding-right: 48px; }
.password-box button { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 1px solid rgba(190,205,234,.18); border-radius: 999px; background: rgba(255,255,255,.055); color: rgba(210,225,248,.78); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: background var(--cg-transition-fast), color var(--cg-transition-fast), border-color var(--cg-transition-fast); }
.password-box button:hover { background: rgba(0,179,126,.1); border-color: rgba(0,179,126,.34); color: #EAF7F2; }
.password-box button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; color: rgba(190,205,234,.56); font-size: .72rem; }
.form-row label { display: inline-flex; align-items: center; gap: 7px; }
.form-row input { width: 13px; height: 13px; }
.form-row a { color: rgba(190,205,234,.66); text-decoration: none; font-weight: 800; }
.form-row a:hover { color: #00B37E; }
.submit-btn { width: 100%; height: 43px; border: 0; border-radius: 999px; background: #00684A; color: #fff; font-size: .9rem; font-weight: 900; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,179,126,.36), 0 0 28px rgba(0,179,126,.30); }
.submit-btn:hover:not(:disabled) { background: #007b58; box-shadow: 0 0 0 1px rgba(0,179,126,.48), 0 0 38px rgba(0,179,126,.42); }
.submit-btn:disabled { opacity: .62; cursor: not-allowed; }
.cx-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: cg-spin .75s linear infinite; }
.panel-footer { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; }
.register-cta { min-width: 250px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(195,209,236,.22); background: rgba(255,255,255,.065); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 900; }
.register-cta:hover { border-color: rgba(0,179,126,.44); background: rgba(255,255,255,.09); }

.login-footer { position: fixed; inset: auto 0 0 0; z-index: 10; height: var(--footer-h); display: flex; align-items: center; justify-content: space-between; padding: 0 68px; background: rgba(8,21,36,.96); border-top: 1px solid rgba(255,255,255,.06); }
.footer-mark img { width: 24px; height: 24px; object-fit: contain; opacity: .86; }
.login-footer nav { display: flex; align-items: center; gap: 58px; }
.login-footer a { color: rgba(180,200,230,.52); text-decoration: none; font-size: .74rem; font-weight: 750; }
.footer-mark { display: inline-flex; align-items: center; gap: 9px; }
.footer-mark span { display: inline-flex; align-items: baseline; gap: 5px; }
.footer-mark strong { color: rgba(244,247,255,.88); font-weight: 900; }
.footer-mark em { font-size: .72rem; }
.footer-mark { display: inline-flex; align-items: center; gap: 9px; }
.footer-mark span { display: inline-flex; align-items: baseline; gap: 5px; }
.footer-mark strong { color: rgba(244,247,255,.88); font-weight: 900; }
.footer-mark em { font-size: .72rem; }
.login-footer a:hover { color: #00B37E; }

@media (max-width: 980px) {
  body { overflow: auto; }
  .topbar-login { padding: 0 20px; }
  .login-stage { min-height: calc(100dvh - var(--header-h) - var(--footer-h)); padding: calc(var(--header-h) + 22px) 14px calc(var(--footer-h) + 22px); }
  .login-card { width: min(100%, 460px); height: auto; grid-template-columns: 1fr; }
  .brand-pane { padding: 28px; }
  .mini-benefits { display: none; }
  .form-pane { padding: 30px 24px; }
  .login-footer { position: relative; height: auto; padding: 14px 20px; flex-direction: column; gap: 10px; }
}
@media (max-width: 580px) {
  .top-brand span { display: none; }
  .top-logo { width: 42px; height: 42px; }
  .brand-wordmark { display: none; }
  .top-staff { min-width: 112px; height: 32px; font-size: .68rem; }
  .login-footer nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
}














/* Staff login - technical glass panel */
.staff-login-page .staff-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .105;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.staff-login-page .staff-bg::after {
  background:
    linear-gradient(90deg, rgba(0,179,126,.035), transparent 26%, rgba(29,78,216,.045) 100%),
    radial-gradient(circle at 50% 40%, rgba(10,37,64,.18), rgba(3,9,18,.62) 72%);
}
.staff-topbar .top-logo { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(0,179,126,.20)); }
.client-return {
  min-width: 188px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(170,190,224,.20);
  background: rgba(255,255,255,.035);
  color: rgba(235,242,255,.78);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--cg-transition-fast), color var(--cg-transition-fast), background var(--cg-transition-fast);
}
.client-return:hover { color: #fff; border-color: rgba(0,179,126,.38); background: rgba(0,179,126,.055); }
.staff-stage { padding-bottom: 58px; }
.staff-card {
  width: 760px;
  min-height: 480px;
  display: grid;
  grid-template-columns: 280px 480px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(5, 18, 43, .88);
  border: 1px solid rgba(126,148,188,.30);
  box-shadow: 0 24px 68px rgba(0,0,0,.52);
  backdrop-filter: blur(16px) saturate(132%);
  -webkit-backdrop-filter: blur(16px) saturate(132%);
}
.staff-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 34px 30px;
  background: linear-gradient(180deg, rgba(3,30,41,.94), rgba(2,10,31,.98));
  border-right: 1px solid rgba(255,255,255,.08);
}
.staff-identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0,179,126,.05), transparent 62%);
  pointer-events: none;
}
.staff-logo { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(0,179,126,.22)); margin-bottom: 18px; }
.staff-identity .panel-wordmark span { font-size: 1.35rem; }
.staff-identity .panel-wordmark em { font-size: .88rem; }
.staff-identity p { margin: 14px 0 24px; color: rgba(190,205,234,.50); font-size: .8rem; }
.staff-system-lines { width: 100%; display: grid; gap: 7px; margin-bottom: 22px; }
.staff-system-lines span { display: block; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,179,126,.26), transparent); }
.staff-system-lines span:nth-child(2) { opacity: .58; }
.staff-system-lines span:nth-child(3) { opacity: .34; }
.staff-status-grid { width: 100%; display: grid; gap: 10px; }
.staff-status-grid div { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 8px; background: rgba(255,255,255,.035); border: 1px solid rgba(160,180,216,.10); text-align: left; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #00B37E; box-shadow: 0 0 10px rgba(0,179,126,.42); flex-shrink: 0; }
.status-dot.muted { background: rgba(170,190,224,.52); box-shadow: none; }
.staff-status-grid b { color: rgba(235,242,255,.76); font-size: .74rem; }
.staff-form-pane { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px 36px; }
.staff-form-head { text-align: left; margin-bottom: 28px; }
.staff-eyebrow { display: inline-flex; margin-bottom: 12px; color: rgba(0,179,126,.72); font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.staff-form-head h2 { margin: 0; color: #F3F7FF; font-size: 1.2rem; font-weight: 920; letter-spacing: -.02em; }
.staff-form-head p { margin: 9px 0 0; color: rgba(190,205,234,.58); font-size: .82rem; }
.staff-form { display: grid; gap: 14px; }
.staff-field { display: grid; gap: 7px; }
.staff-field label { color: rgba(235,242,255,.76); text-transform: uppercase; font-size: .7rem; font-weight: 900; letter-spacing: .04em; }
.staff-field input { width: 100%; height: 42px; border-radius: 8px; border: 1px solid rgba(185,205,238,.22); background: rgba(255,255,255,.052); color: #F4F8FF; outline: none; padding: 0 14px; font: inherit; font-size: .84rem; }
.staff-field input::placeholder { color: rgba(170,188,218,.36); }
.staff-field input:focus { border-color: rgba(0,179,126,.44); background: rgba(0,179,126,.035); box-shadow: 0 0 0 2px rgba(0,179,126,.075); }
.staff-field input.invalid { border-color: rgba(239,68,68,.70); box-shadow: 0 0 0 2px rgba(239,68,68,.10); }
.staff-field small { min-height: 13px; color: #FCA5A5; font-size: .68rem; }
.staff-password-box input { padding-right: 48px; }
.staff-submit { height: 43px; margin-top: 4px; border: 1px solid rgba(0,179,126,.30); border-radius: 9px; background: #00684A; color: #fff; font-size: .86rem; font-weight: 900; cursor: pointer; box-shadow: none; transition: background var(--cg-transition-fast), border-color var(--cg-transition-fast), transform var(--cg-transition-fast); }
.staff-submit:hover:not(:disabled) { background: #007252; border-color: rgba(0,179,126,.48); transform: translateY(-1px); }
.staff-submit:disabled { opacity: .62; cursor: not-allowed; }
.staff-mfa-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.staff-mfa-note span { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: rgba(0,179,126,.68); flex-shrink: 0; }
.staff-mfa-note p { margin: 0; color: rgba(190,205,234,.48); font-size: .72rem; line-height: 1.55; }
.staff-footer { position: fixed; inset: auto 0 0 0; z-index: 10; min-height: 42px; display: flex; align-items: center; justify-content: center; padding: 0 24px; background: rgba(8,21,36,.96); border-top: 1px solid rgba(255,255,255,.06); color: rgba(190,205,234,.56); font-size: .72rem; font-weight: 750; text-align: center; }
@media (max-width: 860px) {
  .staff-login-page { overflow: auto; }
  .staff-stage { padding: calc(var(--header-h) + 22px) 14px 72px; min-height: 100dvh; }
  .staff-card { width: min(100%, 460px); min-height: 0; grid-template-columns: 1fr; }
  .staff-identity { padding: 28px 24px; }
  .staff-system-lines, .staff-status-grid { display: none; }
  .staff-form-pane { padding: 32px 24px; }
  .staff-footer { position: relative; padding: 14px 20px; }
}
@media (max-width: 580px) {
  .client-return { min-width: 146px; height: 32px; font-size: .68rem; }
}
.staff-help-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.staff-help-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(170,190,224,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.028);
  color: rgba(190,205,234,.56);
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  transition: color var(--cg-transition-fast), border-color var(--cg-transition-fast), background var(--cg-transition-fast);
}
.staff-help-actions button:hover {
  color: rgba(244,248,255,.9);
  border-color: rgba(0,179,126,.28);
  background: rgba(0,179,126,.045);
}
@media (max-width: 420px) {
  .staff-help-actions { flex-direction: column; gap: 8px; }
  .staff-help-actions button { width: 100%; }
}

/* Modern 3D button treatment */
.top-staff,
.client-return,
.google-btn,
.submit-btn,
.register-cta,
.staff-submit,
.secondary-3d,
.staff-help-actions button {
  transform: translateY(0);
  will-change: transform, box-shadow, filter;
}
.google-btn,
.register-cta,
.secondary-3d,
.staff-help-actions button,
.client-return {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 10px 22px rgba(0,0,0,.22);
}
.submit-btn,
.staff-submit {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.22),
    0 13px 28px rgba(0,104,74,.30),
    0 0 0 1px rgba(0,179,126,.24);
}
.top-staff,
.client-return {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 12px 28px rgba(0,0,0,.24),
    0 0 26px rgba(0,179,126,.10);
}
.google-btn:hover,
.submit-btn:hover:not(:disabled),
.register-cta:hover,
.secondary-3d:hover,
.top-staff:hover,
.client-return:hover,
.staff-submit:hover:not(:disabled),
.staff-help-actions button:hover {
  transform: translateY(-2px);
}
.google-btn:active,
.submit-btn:active:not(:disabled),
.register-cta:active,
.secondary-3d:active,
.top-staff:active,
.client-return:active,
.staff-submit:active:not(:disabled),
.staff-help-actions button:active {
  transform: translateY(1px);
  filter: brightness(.97);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 10px rgba(0,0,0,.20);
}
.google-btn::before,
.submit-btn::before,
.register-cta::before,
.staff-submit::before,
.staff-help-actions button::before,
.client-return::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent);
  pointer-events: none;
  opacity: .72;
}
.google-btn,
.submit-btn,
.register-cta,
.staff-submit,
.staff-help-actions button,
.client-return {
  position: relative;
  overflow: hidden;
}
.staff-help-actions button {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 8px 18px rgba(0,0,0,.16);
}

/* Google OAuth button */
.staff-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: rgba(190,205,234,.36); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.staff-divider::before,
.staff-divider::after { content: ''; flex: 1; height: 1px; background: rgba(129,151,190,.14); }
.staff-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 43px; width: 100%; border-radius: 9px;
  border: 1px solid rgba(129,151,190,.22);
  background: rgba(255,255,255,.045);
  color: rgba(235,242,255,.82); font-size: .86rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background var(--cg-transition-fast), border-color var(--cg-transition-fast), transform var(--cg-transition-fast);
}
.staff-google-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(129,151,190,.38);
  transform: translateY(-1px);
}

/* Register onboarding */
.register-page { overflow: auto; }
.register-bg::after { background: radial-gradient(circle at 50% 36%, rgba(0,179,126,.08), rgba(3,9,18,.58) 72%); }
.register-stage { position: relative; z-index: 1; min-height: 100dvh; padding: calc(var(--header-h) + 32px) 18px calc(var(--footer-h) + 34px); display: grid; place-items: center; }
.register-shell { width: min(100%, 1040px); min-height: 620px; display: grid; grid-template-columns: 330px minmax(0,1fr); overflow: hidden; border-radius: 18px; background: rgba(6,22,51,.88); border: 1px solid rgba(129,151,190,.30); box-shadow: 0 28px 72px rgba(0,0,0,.5); backdrop-filter: blur(16px) saturate(145%); -webkit-backdrop-filter: blur(16px) saturate(145%); }
.register-aside { padding: 38px 32px; background: radial-gradient(circle at 50% 18%, rgba(0,179,126,.14), transparent 38%), linear-gradient(180deg, rgba(0,30,32,.96), rgba(0,8,27,.99)); border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; text-align: center; }
.register-aside .staff-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(0,179,126,.25)); }
.register-aside p { margin: 16px 0 28px; color: rgba(200,214,238,.56); font-size: .84rem; line-height: 1.55; }
.stepper { width: 100%; list-style: none; display: grid; gap: 10px; padding: 0; margin: auto 0 0; text-align: left; }
.stepper li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 11px; background: rgba(255,255,255,.035); border: 1px solid rgba(160,180,216,.10); color: rgba(190,205,234,.58); transition: background var(--cg-transition-fast), border-color var(--cg-transition-fast), color var(--cg-transition-fast); }
.stepper li span { font-family: var(--cg-font-mono); font-size: .7rem; color: rgba(0,179,126,.64); }
.stepper li strong { font-size: .78rem; }
.stepper li.active { color: #fff; background: rgba(0,179,126,.08); border-color: rgba(0,179,126,.28); }
.register-form-pane { padding: 40px 48px 34px; display: flex; flex-direction: column; min-width: 0; }
.register-head { margin-bottom: 22px; }
.register-head h2 { margin: 0; color: #F4F7FF; font-size: 1.34rem; font-weight: 930; }
.register-head p { margin: 8px 0 0; color: rgba(190,205,234,.58); font-size: .86rem; }
.register-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.register-step { display: none; animation: cg-fade-in .22s ease both; }
.register-step.active { display: grid; gap: 14px; }
.step-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.step-title span { color: rgba(0,179,126,.72); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.step-title h3 { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 900; }
.register-form label { display: grid; gap: 7px; color: rgba(235,242,255,.78); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .035em; }
.register-form .label-text { width: fit-content; max-width: 100%; }
.register-form label.required-field .label-text::after { content: '*'; display: inline-block; margin-left: 4px; color: #fff; font-size: .72rem; line-height: 1; opacity: .92; transform: translateY(-1px); }
.register-form input,
.register-form select,
.register-form textarea { width: 100%; border-radius: 9px; border: 1px solid rgba(195,209,236,.16); background: rgba(255,255,255,.06); color: #F4F8FF; outline: none; padding: 0 14px; font: inherit; font-size: .86rem; text-transform: none; letter-spacing: 0; transition: border-color var(--cg-transition-fast), box-shadow var(--cg-transition-fast), background var(--cg-transition-fast); }
.register-form input,
.register-form select { height: 42px; }
.register-form textarea { min-height: 84px; padding-top: 12px; resize: vertical; }
.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus { border-color: rgba(0,179,126,.52); background: rgba(0,179,126,.04); box-shadow: 0 0 0 2px rgba(0,179,126,.09); }
.register-form select option { background: #071833; color: #F4F8FF; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hidden { display: none !important; }
.legal-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal-toggle label { cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .84rem; }
.legal-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.legal-toggle span { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(195,209,236,.16); background: rgba(255,255,255,.045); color: rgba(235,242,255,.68); transition: background var(--cg-transition-fast), border-color var(--cg-transition-fast), color var(--cg-transition-fast), box-shadow var(--cg-transition-fast); }
.legal-toggle input:checked + span { color: #fff; border-color: rgba(0,179,126,.38); background: rgba(0,179,126,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(0,0,0,.18); }
.registered-legal-fields { display: grid; gap: 14px; }
.legal-note { margin: 2px 0 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(0,179,126,.18); background: rgba(0,179,126,.07); color: rgba(218,232,255,.72); font-size: .82rem; line-height: 1.55; }
.consultation-callout { padding: 18px; border-radius: 14px; border: 1px solid rgba(0,179,126,.24); background: linear-gradient(135deg, rgba(0,179,126,.10), rgba(29,78,216,.06)); color: #fff; font-size: 1.02rem; font-weight: 900; text-align: center; }
.register-actions { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.secondary-3d { min-width: 118px; height: 40px; border-radius: 999px; border: 1px solid rgba(195,209,236,.18); background: rgba(255,255,255,.05); color: rgba(235,242,255,.76); font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }
.step-next-link { position: relative; min-height: 24px; padding: 0 4px 2px; border: 0; background: transparent; color: #F4F8FF; font: inherit; font-size: .92rem; font-weight: 950; line-height: 1.1; cursor: pointer; white-space: nowrap; letter-spacing: 0; }
.step-next-link span { position: relative; display: inline-flex; align-items: center; gap: 8px; line-height: 1.1; }
.step-next-link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, #00B37E, #2F7CFF); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.step-next-link span::before { content: ''; width: 6px; height: 6px; border-top: 2px solid #00B37E; border-right: 2px solid #00B37E; transform: rotate(45deg); order: 2; transition: transform .2s ease, border-color .2s ease; }
.step-next-link:hover span::after,
.step-next-link:focus-visible span::after { transform: scaleX(1); transform-origin: left; }
.step-next-link:hover span::before,
.step-next-link:focus-visible span::before { transform: translateX(3px) rotate(45deg); border-color: #4DA3FF; }
.step-next-link:focus-visible { outline: 2px solid rgba(0,179,126,.34); outline-offset: 7px; border-radius: 999px; }
.final-cta { display: none; width: auto; min-width: 320px; padding: 0 24px; }
.register-success { width: min(100%, 620px); padding: 46px; border-radius: 20px; background: rgba(6,22,51,.88); border: 1px solid rgba(129,151,190,.30); box-shadow: 0 28px 72px rgba(0,0,0,.5); backdrop-filter: blur(16px) saturate(145%); -webkit-backdrop-filter: blur(16px) saturate(145%); text-align: center; }
.register-success img { width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(0,179,126,.28)); }
.register-success h1 { margin: 18px 0 10px; color: #fff; font-size: 1.7rem; }
.register-success p { margin: 0 auto 26px; color: rgba(215,228,250,.72); line-height: 1.65; max-width: 520px; }
.register-success .submit-btn { width: auto; min-width: 220px; padding: 0 22px; text-decoration: none; }
@media (max-width: 900px) {
  .register-shell { grid-template-columns: 1fr; min-height: 0; }
  .register-aside { padding: 28px 24px; }
  .stepper { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 20px; }
  .stepper li { justify-content: center; padding: 0 8px; }
  .stepper li strong { display: none; }
  .register-form-pane { padding: 30px 24px; }
}
@media (max-width: 620px) {
  .form-grid.two,
  .legal-toggle { grid-template-columns: 1fr; }
  .register-actions { flex-direction: column; align-items: stretch; }
  .secondary-3d,
  .step-next-link,
  .final-cta { width: 100%; min-width: 0; }
}
