/* User: Ceasar | Story: #0 | Date: 2026-06-12 | Change: Redesign non-home unauthenticated auth pages without changing auth routes or data contracts. */
body.page--auth-shell {
  background:
    radial-gradient(circle at 88% 12%, rgba(232, 170, 46, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, #f1f5fa 100%);
}

/* User: Ceasar | Story: #0 | Date: 2026-06-13 | Change: Keep redesigned unauthenticated auth pages free of the legacy top navigation. */
.page--auth-shell .navbar,
.page--auth-shell .navbar__mobile-nav {
  display: none !important;
}

/* User: Ceasar | Story: #0 | Date: 2026-06-14 | Change: Keep the global Clara dock from covering login and registration controls. */
.page--auth-shell .sales-chat {
  display: none !important;
}

.page-main--auth-shell {
  max-width: 1200px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.auth-shell__brand-panel,
.auth-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-elevated);
}

.auth-shell__brand-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 660px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(245, 169, 30, 0.16), transparent 34%),
    linear-gradient(180deg, #061f4d 0%, #02142f 100%);
  color: #fff;
}

.auth-shell__brand-panel::after {
  content: '';
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(245, 169, 30, 0.42);
  border-radius: 50%;
  background:
    conic-gradient(from 10deg, rgba(245, 169, 30, 0.72), rgba(245, 169, 30, 0.14), rgba(255, 255, 255, 0.08), rgba(245, 169, 30, 0.72));
  opacity: 0.42;
  pointer-events: none;
}

.auth-shell__brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.auth-shell__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 169, 30, 0.62);
  border-radius: 12px;
  color: #f5c35c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-shell__brand strong,
.auth-shell__brand small {
  display: block;
  line-height: 1.05;
}

.auth-shell__brand strong {
  font-size: 18px;
  text-transform: uppercase;
}

.auth-shell__brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: right;
}

.auth-shell__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 380px;
}

.auth-shell__kicker {
  color: #d79b22;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-shell__brand-panel .auth-shell__kicker {
  color: #f5c35c;
}

.auth-shell__copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.auth-shell__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.auth-shell__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-shell__metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-shell__metrics strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.auth-shell__metrics small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.96);
}

.auth-card h1 {
  margin: 0;
  color: #07183d;
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.auth-card > p,
.auth-otp-card > p,
.auth-alert > p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  color: var(--accent);
  text-decoration: none;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  text-decoration: underline;
}

input.auth-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border-color: #dbe4ef;
  background: #f8fbff;
  font-size: 15px;
}

input.auth-input:focus {
  border-color: rgba(11, 108, 122, 0.42);
  box-shadow: 0 0 0 3px rgba(11, 108, 122, 0.12);
  outline: 0;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-actions .btn,
.auth-actions form {
  min-width: 148px;
}

.auth-actions form .btn {
  width: 100%;
}

.auth-alert,
.auth-otp-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), rgba(255, 255, 255, 0.96));
}

.auth-otp-card {
  margin-top: 2px;
  border-color: #dbe4ef;
  background: #f8fbff;
}

.auth-alert h2,
.auth-otp-card h2 {
  margin: 0;
  color: #07183d;
  font-size: 24px;
}

.auth-alert .question-meta,
.auth-alert__session .question-meta {
  margin: 0;
}

.auth-alert__session {
  display: grid;
  gap: 8px;
}

.auth-alert__session p {
  margin: 0;
  color: #5e6b82;
}

.auth-alert__session div p:last-child {
  color: #0b1020;
  font-weight: 700;
}

html[data-theme] body.page--auth-shell {
  color-scheme: light;
}

.page--auth-shell select option {
  background: #fff;
  color: #0b1020;
}

.auth-card .auth-oauth {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .page-main--auth-shell {
    padding-top: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell__brand-panel {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-main--auth-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-shell {
    gap: 14px;
  }

  .auth-shell__brand-panel,
  .auth-card {
    border-radius: 10px;
  }

  .auth-shell__brand-panel {
    min-height: 0;
    padding: 20px;
    gap: 28px;
  }

  .auth-shell__copy h2 {
    font-size: 32px;
  }

  .auth-shell__copy p {
    font-size: 14px;
  }

  .auth-shell__metrics {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-actions,
  .auth-actions .btn,
  .auth-actions form {
    width: 100%;
  }
}

/* 2026-07-10 PECB cockpit auth mockup pass. Forms and social-login links remain server-rendered from existing auth config. */
body.page--auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(56, 230, 163, 0.22), transparent 31%),
    radial-gradient(circle at 58% 10%, rgba(52, 213, 255, 0.24), transparent 28%),
    radial-gradient(circle at 10% 8%, rgba(255, 153, 0, 0.15), transparent 28%),
    linear-gradient(135deg, #f7efe3 0%, #f4f7fb 52%, #dff5ef 100%);
}

.page-main--auth-shell {
  width: min(100%, 1560px);
  max-width: none;
  min-height: 100vh;
  padding: 36px;
  display: grid;
  align-items: center;
}

.auth-shell {
  grid-template-columns: minmax(420px, 0.57fr) minmax(460px, 0.5fr);
  gap: 0;
  align-items: center;
}

.auth-shell__brand-panel,
.auth-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 36px;
  box-shadow: 0 34px 90px rgba(11, 16, 32, 0.14);
}

.auth-shell__brand-panel {
  min-height: 828px;
  padding: 46px 42px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 153, 0, 0.18), transparent 24%),
    radial-gradient(circle at 72% 24%, rgba(52, 213, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #20190f 0%, #06111f 43%, #0b2037 100%);
}

.auth-shell__brand-panel::after {
  right: 40px;
  bottom: 38px;
  width: min(390px, 52%);
  height: 214px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(90deg, #ff9900, #34d5ff) 20px 68px / calc(100% - 40px) 10px no-repeat,
    linear-gradient(90deg, rgba(255, 153, 0, 0.92), rgba(52, 213, 255, 0.85)) 20px 68px / 72% 10px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  opacity: 1;
}

.auth-shell__brand {
  grid-template-columns: 48px minmax(0, 1fr);
}

.auth-shell__mark {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9900, #ffc45a);
  color: #07111f;
  font-size: 25px;
  letter-spacing: 0;
}

.auth-shell__brand strong {
  text-transform: none;
  letter-spacing: 0;
}

.auth-shell__brand small {
  text-align: left;
  letter-spacing: 0;
}

.auth-shell__kicker {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(52, 213, 255, 0.42);
  border-radius: 999px;
  background: rgba(52, 213, 255, 0.12);
  color: #006782;
  letter-spacing: 0;
  text-transform: none;
}

.auth-shell__brand-panel .auth-shell__kicker {
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.12);
  color: #ffb02e;
}

.auth-shell__copy {
  max-width: 640px;
  gap: 22px;
}

.auth-shell__copy h2 {
  max-width: 560px;
  font-size: clamp(48px, 4.6vw, 58px);
  line-height: 0.94;
}

.auth-shell__copy p {
  max-width: 650px;
  color: rgba(238, 244, 250, 0.78);
  font-size: 19px;
  line-height: 1.38;
}

.auth-shell__metrics {
  width: min(390px, 100%);
  margin-left: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(71, 85, 105, 0.52);
  backdrop-filter: blur(14px);
}

.auth-shell__readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.auth-shell__readiness-head span {
  width: auto;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #07111f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.auth-shell__readiness-head strong {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.auth-shell__readiness-bar {
  display: block;
  width: 100%;
  height: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.86);
}

.auth-shell__readiness-bar span {
  display: block;
  width: 73%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9900, #34d5ff);
}

.auth-shell__readiness-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-shell__metrics span {
  min-height: 96px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-shell__metrics .auth-shell__readiness-bar {
  min-height: 10px;
  border-radius: 999px;
}

.auth-shell__readiness-stats span {
  display: grid;
  align-content: center;
  padding: 18px;
}

.auth-shell__metrics strong {
  font-size: 30px;
}

.auth-card {
  position: relative;
  z-index: 2;
  min-height: 600px;
  margin-left: -48px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.auth-card h1 {
  color: #0b1020;
  font-size: clamp(38px, 4vw, 44px);
  line-height: 1;
}

.auth-card > p,
.auth-otp-card > p,
.auth-alert > p {
  color: #5e6b82;
  font-size: 16px;
}

.auth-form {
  gap: 16px;
}

.auth-field {
  gap: 8px;
}

.auth-field .question-meta,
.auth-field__label-row .question-meta {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input.auth-input {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  background: #f5f8fc;
  color: #0b1020;
}

input.auth-input:focus {
  border-color: rgba(52, 213, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(52, 213, 255, 0.14);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.auth-actions .btn {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 950;
}

.auth-actions .btn--primary {
  background: linear-gradient(135deg, #ff9900, #ffc45a);
  color: #111827;
}

.auth-actions .btn--outline {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
}

.auth-card .auth-oauth {
  margin-top: 12px;
}

.auth-oauth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.auth-oauth__divider-line {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.auth-oauth__divider-label {
  color: #6b7280;
  font-size: 12px;
}

.auth-oauth__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-oauth__button {
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #374151;
}

.auth-oauth__copy {
  color: #66758c;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-shell__brand-panel {
    min-height: 420px;
  }

  .auth-card {
    order: -1;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page-main--auth-shell {
    padding: 16px;
  }

  .auth-shell__brand-panel,
  .auth-card {
    border-radius: 24px;
  }

  .auth-shell__brand-panel {
    min-height: 0;
    padding: 24px;
  }

  .auth-shell__copy h2 {
    font-size: 38px;
  }

  .auth-shell__metrics {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .auth-card {
    min-height: 0;
    padding: 24px;
  }

  .auth-actions,
  .auth-oauth__grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-10 PECB auth mockup tightening pass. Keep configured social providers intact; only fixes visual layout. */
.auth-shell__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: end;
  width: min(430px, 100%);
}

.auth-shell__readiness-head,
.auth-shell__readiness-bar,
.auth-shell__readiness-stats {
  grid-column: 1;
}

.auth-shell__readiness-head {
  margin: 0;
}

.auth-shell__metrics .auth-shell__readiness-head span {
  display: inline-flex;
  width: auto;
  min-height: 0;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
}

.auth-shell__readiness-head strong {
  font-size: 36px;
}

.auth-shell__readiness-bar {
  min-height: 10px;
  padding: 0;
}

.auth-shell__readiness-bar span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #ff9900, #34d5ff);
}

.auth-shell__readiness-stats span {
  min-height: 104px;
}

.auth-shell__readiness-stats strong {
  font-size: 32px;
  line-height: 1;
}

@media (max-width: 640px) {
  .auth-shell__readiness-stats {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-12 prototype consolidation: Inter cockpit typography and capability-based guest messaging. */
body.page--auth-shell {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --auth-ink: #0b1020;
  --auth-muted: #667085;
  --auth-amber: #ff9900;
  --auth-aqua: #34d5ff;
  --auth-mint: #38e6a3;
  font-family: var(--font-body);
}

.page--auth-shell :is(button, input, select, textarea) {
  font-family: inherit;
}

.auth-shell__brand-panel::after {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 153, 0, 0.26), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(52, 213, 255, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.auth-shell__copy h2,
.auth-card h1,
.auth-alert h2,
.auth-otp-card h2 {
  font-family: var(--font-body);
  letter-spacing: -0.055em;
}

.auth-shell__copy h2 {
  text-wrap: balance;
}

.auth-shell__capability-rule {
  grid-column: 1;
  display: block;
  width: 100%;
  height: 10px;
  min-height: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-amber), var(--auth-aqua), var(--auth-mint));
}

.auth-shell__readiness-head strong {
  max-width: 52%;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
  text-align: right;
}

.auth-shell__readiness-stats strong {
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -0.035em;
}

.auth-shell__readiness-stats small {
  line-height: 1.35;
}

.auth-card,
.auth-shell__brand-panel {
  border-radius: 32px;
}

.auth-card .btn,
.auth-card input,
.auth-oauth__button {
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .auth-shell__metrics {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .auth-shell__readiness-head strong {
    max-width: 48%;
    font-size: 18px;
  }

  .auth-shell__readiness-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell__readiness-stats span {
    min-height: 96px;
    padding: 14px;
  }

  .auth-shell__readiness-stats strong {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .auth-shell__readiness-stats {
    grid-template-columns: 1fr;
  }
}
