.account-main {
  min-height: calc(100vh - 82px);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: linear-gradient(145deg, #f8fbff 0%, #edf4ff 55%, #f7f9fc 100%);
}

.account-shell {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

.auth-layout {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

.auth-heading {
  max-width: 620px;
  text-align: center;
}

.auth-heading .brand {
  margin-bottom: 1.75rem;
}

.auth-heading h1,
.demo-copy h1 {
  margin: 0;
  color: #17191f;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.auth-heading h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.auth-heading p,
.demo-copy > p,
.form-intro {
  color: #566171;
}

.auth-card,
.demo-form-card,
.finding-preview {
  width: min(100%, 520px);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid #d7dee9;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 55px rgba(32, 54, 91, .09);
}

.auth-card {
  display: grid;
  gap: .85rem;
}

.provider-button,
.account-submit,
.demo-submit {
  min-height: 50px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
}

.provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: #5d6675;
  border: 1px solid #cbd3df;
  background: #f8fafc;
  cursor: not-allowed;
}

body:not(.failure-lab) button.provider-button.provider-button[disabled]:not(.nav-toggle):not(.modern-toggle):not(.scan-metric),
body:not(.failure-lab) button.provider-button.provider-button[disabled]:not(.nav-toggle):not(.modern-toggle):not(.scan-metric):hover {
  color: #5d6675 !important;
  border-color: #cbd3df !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  opacity: 1;
  transform: none;
}

.provider-mark {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #315fdb;
  font-size: .78rem;
}

.provider-mark.microsoft {
  border-radius: 2px;
  background: linear-gradient(90deg,#f25022 0 48%,transparent 48% 52%,#7fba00 52%),linear-gradient(90deg,#00a4ef 0 48%,transparent 48% 52%,#ffb900 52%);
  color: transparent;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: .35rem 0;
  color: #6b7280;
  font-size: .9rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe4ec;
}

.account-form,
.demo-form {
  display: grid;
  gap: .5rem;
}

.account-form label,
.demo-form label {
  color: #202631;
  font-weight: 750;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-form input,
.demo-form input,
.demo-form textarea {
  width: 100%;
  min-height: 50px;
  padding: .85rem 1rem;
  color: #17191f;
  border: 1px solid #9ba7b8;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.demo-form textarea {
  min-height: 110px;
  resize: vertical;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: .75rem;
  padding: .45rem .6rem;
  transform: translateY(-50%);
  color: #174fcf;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.account-submit,
.demo-submit {
  margin-top: .55rem;
  color: #fff;
  border: 1px solid #315fdb;
  background: #315fdb;
  box-shadow: 0 10px 28px rgba(49,95,219,.2);
  cursor: pointer;
}

.account-submit:hover,
.demo-submit:hover {
  background: #244fc6;
}

.helper-link {
  color: #174fcf;
  font-weight: 750;
  text-underline-offset: .18em;
}

.auth-note,
.form-note,
.form-status {
  color: #5f6877;
  font-size: .9rem;
}

.auth-note {
  max-width: 520px;
  margin: 0;
  text-align: center;
}

.form-error {
  min-height: 1.25rem;
  color: #b42318;
  font-size: .875rem;
}

.form-status:not(:empty) {
  margin-top: 1rem;
  padding: 1rem;
  color: #123d2c;
  border-left: 4px solid #2f855a;
  background: #edf9f2;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(400px, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.demo-copy {
  display: grid;
  gap: 1.35rem;
}

.demo-copy .eyebrow {
  margin: 0;
}

.finding-preview {
  padding: 0;
  overflow: hidden;
}

.finding-body {
  padding: 1.4rem;
}

.finding-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #697384;
  font-size: .82rem;
}

.finding-impact {
  padding: .25rem .55rem;
  color: #9b2c2c;
  border-radius: 999px;
  background: #fff0f0;
  font-weight: 800;
}

.finding-preview h2 {
  margin: 1rem 0;
  color: #17191f;
  font-size: 1.25rem;
  line-height: 1.3;
}

.finding-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  color: #566171;
  font-size: .85rem;
}

.finding-facts strong {
  display: block;
  margin-top: .2rem;
  color: #202631;
}

.risk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  color: #fff;
  background: #111827;
}

.risk-bar strong {
  font-size: 1.4rem;
}

.demo-benefits {
  display: grid;
  gap: .8rem;
  margin: .5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #dfe4ec;
  list-style: none;
}

.demo-benefits li {
  position: relative;
  padding-left: 1.65rem;
  color: #485364;
}

.demo-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #257a52;
  font-weight: 900;
}

.demo-form-card {
  width: 100%;
}

.demo-form-card h2 {
  margin: 0 0 .35rem;
  color: #17191f;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.form-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
  color: #6a7483;
  font-size: .83rem;
}

.form-steps li {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.step-number {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid #aab4c1;
  border-radius: 50%;
  font-weight: 800;
}

.form-steps .current {
  color: #202631;
  font-weight: 800;
}

.form-steps .current .step-number {
  color: #fff;
  border-color: #315fdb;
  background: #315fdb;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: .35rem;
  font-weight: 500 !important;
}

.consent-row input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin-top: .15rem;
}

@media (max-width: 820px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-form-card { grid-row: 1; }
  .demo-copy h1 { max-width: 13ch; }
}

@media (max-width: 560px) {
  .account-shell { width: min(calc(100% - 28px), 1180px); }
  .account-main { padding-top: 2.5rem; }
  .auth-card,
  .demo-form-card { padding: 1.25rem; border-radius: 14px; }
  .form-steps { flex-direction: column; gap: .55rem; }
  .finding-facts { grid-template-columns: 1fr; }
}
