/* ==========================================================================
   WELLOCK CIT — CLIENT OPERATIONS PORTAL sign-in shell
   (spec: WELLOCK_CIT_CLIENT_PORTAL_LOGIN_REDESIGN.md, 2026-09-18)
   Self-contained: no Argon, no legacy theme, no dependency on os.css.
   Used by resources/views/auth/client-shell.blade.php and the pages that
   extend it (client login, 2FA, recovery code, forgot / reset password).
   Prefix: cl-
   ========================================================================== */
:root {
  --cl-navy: #04121F; --cl-navy-2: #0B2A3F; --cl-navy-3: #081C2D;
  --cl-cyan: #2FC4E8; --cl-teal: #009F9A; --cl-teal-2: #007B91; --cl-teal-soft: #E3F6F5;
  --cl-page: #FBFCFD; --cl-card: #FFFFFF; --cl-border: #DCE4EB; --cl-input-border: #D6E0E8;
  --cl-text: #0F1F31; --cl-text-2: #65758B; --cl-muted: #93A1B3;
  --cl-red: #D93A45; --cl-red-soft: #FFF1F2; --cl-red-border: #F6CDD1;
  --cl-amber: #C77B0B; --cl-amber-soft: #FFF6E5; --cl-amber-border: #F4DFB0;
  --cl-green: #0E8F6C; --cl-green-soft: #E8F7F1; --cl-green-border: #BFE7D6;
  --cl-font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cl-focus: 0 0 0 3px rgba(0,159,154,.16);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.cl-body { font: 400 14px/1.5 var(--cl-font); color: var(--cl-text); background: var(--cl-page); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.cl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cl-shell { display: grid; grid-template-columns: 49% 51%; min-height: 100vh; }

/* ------------------------------------------------------------------ brand */
.cl-brand {
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; padding: 56px 72px 48px;
  background-color: var(--cl-navy);
  background-image:
    radial-gradient(60% 45% at 78% 8%, rgba(47,196,232,.20) 0%, rgba(47,196,232,0) 70%),
    radial-gradient(55% 40% at 12% 92%, rgba(0,159,154,.22) 0%, rgba(0,159,154,0) 70%),
    linear-gradient(160deg, var(--cl-navy) 0%, var(--cl-navy-2) 100%);
}
/* faint architectural grid */
.cl-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,0) 100%);
}
/* spec §5 readability overlay — sits on every layer, incl. an optional photo */
.cl-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,18,31,.35) 0%, rgba(4,18,31,.58) 55%, rgba(4,18,31,.82) 100%);
}
.cl-brand-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; opacity: .9; }
.cl-brand > :not(.cl-brand-art) { position: relative; z-index: 2; }
/* optional approved photograph at public/asset/os/client-login-hero.jpg
   (the shell sets --cl-hero only when the file exists) */
.cl-brand.has-photo {
  background-image:
    radial-gradient(60% 45% at 78% 8%, rgba(47,196,232,.10) 0%, rgba(47,196,232,0) 70%),
    var(--cl-hero);
  background-size: auto, cover; background-position: center, center; background-repeat: no-repeat;
}
.cl-brand.has-photo::before, .cl-brand.has-photo .cl-brand-art { display: none; }

.cl-brand-head { display: flex; align-items: center; gap: 16px; }
.cl-brand-head img { width: 56px; height: 56px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.cl-wordmark { display: flex; flex-direction: column; line-height: 1; }
.cl-wordmark b { font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.cl-wordmark b span { font-weight: 300; }
.cl-wordmark small { font-size: 11.5px; font-weight: 600; letter-spacing: .32em; color: #9FB3C8; margin-top: 8px; }

.cl-hero { margin-top: 84px; max-width: 520px; }
.cl-hero h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.18; font-weight: 700; letter-spacing: -.015em; }
.cl-hero h1 em { display: block; font-style: normal; color: var(--cl-cyan); }
.cl-hero p { margin: 0; font-size: 16px; line-height: 1.6; color: #C3CFDC; max-width: 440px; }

.cl-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; max-width: 560px; }
.cl-cap {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 15px;
  background: rgba(8,28,45,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
}
.cl-cap i { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(47,196,232,.14); border: 1px solid rgba(47,196,232,.35); color: var(--cl-cyan); }
.cl-cap svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-cap b { display: block; font-size: 14px; font-weight: 650; margin-bottom: 3px; color: #fff; }
.cl-cap span { display: block; font-size: 12.5px; line-height: 1.4; color: #A9B8C8; }

.cl-brand-foot { margin-top: auto; padding-top: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cl-trust .cl-rule { width: 44px; height: 3px; background: var(--cl-cyan); border-radius: 2px; margin-bottom: 14px; }
.cl-trust span { font-size: 11.5px; font-weight: 600; letter-spacing: .28em; color: #B3C2D2; text-transform: uppercase; white-space: nowrap; }
.cl-trust span i { font-style: normal; color: var(--cl-cyan); margin: 0 10px; }
.cl-statement { display: flex; align-items: center; gap: 14px; opacity: .55; }
.cl-statement img { width: 132px; height: 132px; object-fit: contain; opacity: .22; filter: grayscale(1) brightness(2.2); }
.cl-statement span { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; letter-spacing: .22em; line-height: 1.55; color: #8EA3B8; }

/* ------------------------------------------------------------------ panel */
.cl-panel { position: relative; display: flex; flex-direction: column; background: var(--cl-page); padding: 28px 48px 24px; min-height: 100vh; }
.cl-util { display: flex; justify-content: flex-end; align-items: center; gap: 20px; height: 40px; }
.cl-util a { color: var(--cl-text-2); font-weight: 550; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; }
.cl-util a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-util a:hover { color: var(--cl-text); background: #F1F5F8; }
.cl-util a:focus-visible { outline: 0; box-shadow: var(--cl-focus); }
.cl-mobile-brand { display: none; }

.cl-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 56px; }
.cl-card {
  width: 100%; max-width: 470px; background: var(--cl-card); border: 1px solid var(--cl-border);
  border-radius: 12px; box-shadow: 0 14px 36px rgba(15,31,49,.08); padding: 40px;
}
.cl-card-head { margin-bottom: 26px; }
.cl-card-head h2 { margin: 0 0 6px; font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: -.015em; }
.cl-card-head p { margin: 0; font-size: 15px; color: var(--cl-text-2); }
.cl-card-head p strong { color: var(--cl-text); font-weight: 600; }

/* alerts (card-level, inline — no toasts, no browser alerts) */
.cl-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.45; }
.cl-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-alert b { display: block; font-weight: 650; margin-bottom: 2px; }
.cl-alert p { margin: 0; }
.cl-alert.is-danger { background: var(--cl-red-soft); color: #8A2730; border: 1px solid var(--cl-red-border); }
.cl-alert.is-danger svg { color: var(--cl-red); }
.cl-alert.is-warning { background: var(--cl-amber-soft); color: #6B4508; border: 1px solid var(--cl-amber-border); }
.cl-alert.is-warning svg { color: var(--cl-amber); }
.cl-alert.is-success { background: var(--cl-green-soft); color: #0B5C47; border: 1px solid var(--cl-green-border); }
.cl-alert.is-success svg { color: var(--cl-green); }
.cl-alert-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.cl-alert-actions a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

/* fields */
.cl-field { margin-bottom: 18px; }
.cl-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--cl-text); }
.cl-input { position: relative; }
.cl-input > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--cl-muted); pointer-events: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-input input {
  width: 100%; height: 54px; padding: 0 16px 0 48px; border: 1px solid var(--cl-input-border); border-radius: 10px;
  background: #fff; color: var(--cl-text); font: 400 15px var(--cl-font); transition: border-color .12s, box-shadow .12s;
}
.cl-input input::placeholder { color: var(--cl-muted); }
.cl-input input:focus { outline: 0; border-color: var(--cl-teal); box-shadow: var(--cl-focus); }
.cl-input input[readonly]:not([data-nf-ro]) { background: #F5F8FA; color: var(--cl-text-2); }
.cl-input input.is-invalid, .cl-input input[aria-invalid="true"] { border-color: var(--cl-red); }
.cl-input input.is-invalid:focus, .cl-input input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217,58,69,.14); }
.cl-input.has-toggle input { padding-right: 54px; }
.cl-input.is-code input { padding-left: 48px; font-size: 22px; font-weight: 600; letter-spacing: .38em; }
.cl-input.is-code input::placeholder { letter-spacing: .38em; font-weight: 400; font-size: 18px; }
.cl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; color: var(--cl-text-2); cursor: pointer; display: grid; place-items: center; }
.cl-eye:hover { background: #F1F5F8; color: var(--cl-text); }
.cl-eye:focus-visible { outline: 2px solid var(--cl-teal); outline-offset: 1px; }
.cl-eye svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-eye svg[hidden] { display: none; }
.cl-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--cl-red); }
.cl-error.is-visible { display: block; }
.cl-hint { margin-top: 6px; font-size: 12.5px; color: var(--cl-text-2); line-height: 1.45; }

.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 22px; }
.cl-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cl-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--cl-text); position: relative; }
.cl-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cl-check i { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--cl-input-border); background: #fff; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.cl-check i svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cl-check input:checked + i { background: var(--cl-teal); border-color: var(--cl-teal); }
.cl-check input:checked + i svg { opacity: 1; }
.cl-check input:focus-visible + i { box-shadow: var(--cl-focus); }
.cl-link { color: var(--cl-teal); font-weight: 600; text-decoration: none; font-size: 13.5px; border-radius: 4px; }
.cl-link:hover { color: var(--cl-teal-2); text-decoration: underline; }
.cl-link:focus-visible { outline: 0; box-shadow: var(--cl-focus); }

.cl-captcha { margin-bottom: 18px; }

/* primary button */
.cl-btn {
  width: 100%; height: 54px; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, #009F9A, #007B91); font: 600 16px var(--cl-font);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 16px rgba(0,123,145,.18); transition: filter .12s, transform .05s, box-shadow .12s; text-decoration: none;
}
.cl-btn:hover { filter: brightness(.94); }
.cl-btn:active { transform: translateY(1px); }
.cl-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(0,159,154,.35), 0 6px 16px rgba(0,123,145,.18); }
.cl-btn[disabled] { opacity: .85; cursor: default; filter: none; }
.cl-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-btn .cl-spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: cl-spin .7s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-btn-ghost { background: #fff; color: var(--cl-text); border: 1px solid var(--cl-border); box-shadow: none; }
.cl-btn-ghost:hover { background: #F5F8FA; filter: none; }

.cl-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--cl-text-2); }
.cl-secure svg { width: 16px; height: 16px; color: var(--cl-teal); stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cl-secure i { font-style: normal; color: var(--cl-muted); margin: 0 4px; }

.cl-back { display: flex; justify-content: center; margin-top: 22px; }
.cl-back a { display: inline-flex; align-items: center; gap: 7px; }
.cl-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* footer */
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--cl-muted); }
.cl-foot nav { display: flex; align-items: center; gap: 6px; }
.cl-foot nav a { color: var(--cl-text-2); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.cl-foot nav a:hover { color: var(--cl-text); text-decoration: underline; }
.cl-foot nav a:focus-visible { outline: 0; box-shadow: var(--cl-focus); }
.cl-foot nav i { font-style: normal; color: var(--cl-border); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1399px) {
  .cl-brand { padding: 48px 52px 40px; }
  .cl-hero { margin-top: 64px; } .cl-hero h1 { font-size: 34px; }
}
@media (max-width: 1199px) {
  .cl-shell { grid-template-columns: 40% 60%; }
  .cl-brand { padding: 40px 36px 32px; }
  .cl-wordmark b { font-size: 26px; }
  .cl-hero { margin-top: 48px; } .cl-hero h1 { font-size: 28px; } .cl-hero p { font-size: 14.5px; }
  .cl-caps { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; max-width: 380px; }
  .cl-cap { padding: 12px 14px; } .cl-cap i { width: 32px; height: 32px; } .cl-cap span { display: none; }
  .cl-statement { display: none; }
  .cl-panel { padding: 24px 32px 20px; }
}
@media (max-width: 767px) {
  .cl-shell { grid-template-columns: 1fr; }
  .cl-brand { display: none; }
  .cl-panel { padding: 0 0 16px; min-height: 100vh; }
  .cl-util { position: absolute; top: 12px; right: 12px; height: auto; z-index: 3; }
  .cl-util a { color: #C3CFDC; } .cl-util a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .cl-mobile-brand {
    display: flex; align-items: center; gap: 14px; padding: 26px 20px 30px;
    background: linear-gradient(160deg, var(--cl-navy) 0%, var(--cl-navy-2) 100%); color: #fff;
  }
  .cl-mobile-brand img { width: 44px; height: 44px; object-fit: contain; }
  .cl-mobile-brand .cl-wordmark b { font-size: 22px; }
  .cl-mobile-brand .cl-wordmark small { font-size: 10px; letter-spacing: .26em; margin-top: 6px; }
  .cl-center { justify-content: flex-start; padding: 0 0 28px; margin-top: -12px; }
  .cl-card { width: calc(100% - 32px); max-width: none; margin: 16px; padding: 24px; }
  .cl-card-head h2 { font-size: 23px; }
  .cl-foot { flex-direction: column; text-align: center; gap: 8px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .cl-btn .cl-spin { animation: none; } .cl-btn, .cl-input input { transition: none; } }
