/* Client Cloud Workspace sign-in: canonical styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --ccw-page: #080E1C;
  --ccw-panel-from: #0F766E;
  --ccw-panel-to: #172554;
  --ccw-panel-fallback: #0F3D4A;
  --ccw-accent: #0F766E;
  --ccw-accent-hover: #115E59;
  --ccw-accent-pressed: #134E4A;
  --ccw-focus-ring: rgba(15, 118, 110, 0.18);
  --ccw-surface: #FFFFFF;
  --ccw-ink: #0F172A;
  --ccw-label: #334155;
  --ccw-muted: #64748B;
  --ccw-placeholder: #94A3B8;
  --ccw-border: #E2E8F0;
  --ccw-divider: #EEF2F5;
  --ccw-on-panel: #FFFFFF;
  --ccw-error-bg: #FEF2F2;
  --ccw-error-border: #FECACA;
  --ccw-error-text: #991B1B;
  --ccw-invalid: #DC2626;
  --ccw-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ccw-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
  background-color: var(--ccw-page);
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(15, 118, 110, 0.32) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(23, 37, 84, 0.45) 0%, rgba(0, 0, 0, 0) 60%);
  font-family: var(--ccw-font);
  color: var(--ccw-ink);
}

.ccw-card {
  width: 100%;
  max-width: 960px;
  min-height: 580px;
  display: flex;
  background: var(--ccw-surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.21),
    0 0 48px rgba(15, 118, 110, 0.27),
    0 0 140px rgba(23, 37, 84, 0.33),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.ccw-panel {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  background-color: var(--ccw-panel-fallback);
  background-image: linear-gradient(150deg in oklab, #0F766E 0%, #172554 100%);
}

.ccw-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ccw-logo { width: 180px; height: 120px; display: flex; align-items: center; justify-content: center; }
.ccw-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ccw-logo--plate { background: #FFFFFF; border-radius: 12px; padding: 16px; box-sizing: border-box; }
.ccw-client-name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ccw-on-panel); }

.ccw-form-side { flex: 1 1 auto; display: flex; flex-direction: column; padding: 44px 48px 0; box-sizing: border-box; }
.ccw-form-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 16px; width: 100%; max-width: 440px; margin: 0 auto; }

.ccw-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.ccw-head h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ccw-ink); }
.ccw-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ccw-muted); }

.ccw-error { padding: 12px 14px; background: var(--ccw-error-bg); border: 1px solid var(--ccw-error-border); border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--ccw-error-text); }

.ccw-field { display: flex; flex-direction: column; gap: 6px; }
.ccw-field label { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ccw-label); }
.ccw-field input { height: 46px; padding: 0 14px; font-family: var(--ccw-font); font-size: 15px; color: var(--ccw-ink); background: var(--ccw-surface); border: 1px solid var(--ccw-border); border-radius: 10px; box-sizing: border-box; width: 100%; }
.ccw-field input::placeholder { color: var(--ccw-placeholder); }
.ccw-field input:focus { outline: none; border-color: var(--ccw-accent); box-shadow: 0 0 0 3px var(--ccw-focus-ring); }
.ccw-field input[aria-invalid="true"] { border-color: var(--ccw-invalid); }
.ccw-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
.ccw-field input:disabled { background: #F8FAFC; color: var(--ccw-placeholder); }

.ccw-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ccw-actions .g-recaptcha { flex: 0 0 304px; }

.ccw-submit { flex: 1 1 auto; min-width: 110px; height: 46px; border: 0; border-radius: 10px; background: var(--ccw-accent); color: #FFFFFF; font-family: var(--ccw-font); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.ccw-submit:hover { background: var(--ccw-accent-hover); }
.ccw-submit:active { background: var(--ccw-accent-pressed); }
.ccw-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35); }
.ccw-submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.ccw-auth { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ccw-muted); }

.ccw-foot { margin-top: 28px; padding: 16px 0 20px; border-top: 1px solid var(--ccw-divider); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; line-height: 1.5; color: var(--ccw-muted); }
.ccw-foot a { color: var(--ccw-accent); text-decoration: none; }
.ccw-foot a:hover { color: var(--ccw-accent-hover); text-decoration: underline; }

@media (max-width: 760px) {
  .ccw-page { padding: 16px; align-items: flex-start; }
  .ccw-card { flex-direction: column; min-height: 0; }
  .ccw-panel { flex: 0 0 auto; min-height: 210px; padding: 28px; }
  .ccw-logo { width: 150px; height: 96px; }
  .ccw-client-name { font-size: 19px; }
  .ccw-form-side { padding: 28px 24px 0; }
  .ccw-actions { flex-direction: column; align-items: stretch; }
  .ccw-actions .g-recaptcha { flex: 0 0 auto; align-self: flex-start; }
  .ccw-submit { flex: 0 0 46px; width: 100%; }
  .ccw-foot { flex-direction: column; }
}

/* ------------------------------------------------------------------
   RD Web Access integration (Lithium Networks, v2.0.0)
   Layout plumbing only. No colors, sizes or type values beyond the spec.
   ------------------------------------------------------------------ */

/* The page is the whole document */
.ccw-body { margin: 0; background-color: var(--ccw-page); }
.ccw-body noscript { display: block; padding: 16px; font-family: var(--ccw-font); color: var(--ccw-on-panel); }

/* Visible keyboard focus on the password-change link inside an error */
.ccw-error a { color: var(--ccw-error-text); text-decoration: underline; }

/* Native submit input needs its platform styling removed */
.ccw-submit { -webkit-appearance: none; appearance: none; padding: 0; }

/* Spec: the action row needs 426px of form-body width; below that it stacks.
   Form body = (card width x 58%) - 96px, card = viewport - 48px, so this happens below 948px. */
@media (max-width: 947px) {
  .ccw-actions { flex-direction: column; align-items: stretch; }
  .ccw-actions .g-recaptcha { flex: 0 0 auto; align-self: flex-start; }
  .ccw-submit { flex: 0 0 46px; width: 100%; }
}
