/* Client account page */
.account-page,
.account-page * {
  min-width: 0;
}

.account-page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.account-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-brand {
  flex: 0 0 auto;
}

.account-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.account-language-switcher {
  flex: 0 0 auto;
}

.account-back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.account-back-link:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.account-main {
  background:
    radial-gradient(circle at 84% 14%, rgba(18, 163, 168, 0.13), transparent 32%),
    linear-gradient(135deg, #f9fbff 0%, #edf4ff 54%, #f7fafc 100%);
}

.account-hero {
  position: relative;
  padding: 58px 0 44px;
  border-bottom: 1px solid rgba(219, 228, 240, 0.92);
}

.account-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.account-intro {
  max-width: 880px;
}

.account-kicker {
  display: block;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.account-intro h1 {
  max-width: 850px;
  color: var(--primary-strong);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.064em;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.account-lead {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 21px);
  margin-bottom: 30px;
}

.account-trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-trust-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 228, 240, 0.94);
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.06);
}

.account-trust-item span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.account-trust-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.account-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 228, 240, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  overflow: hidden;
}

.account-panel::before {
  content: "";
  position: absolute;
  right: -76px;
  top: -76px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(18, 163, 168, 0.12);
  pointer-events: none;
}

.account-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  margin-bottom: 24px;
}

.account-tab {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-tab.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.1);
}

.account-form-panel {
  position: relative;
  z-index: 1;
}

.account-form-panel[hidden] {
  display: none !important;
}

.account-form-head {
  margin-bottom: 22px;
}

.account-form-head span {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}

.account-form-head h2 {
  color: var(--primary-strong);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 10px;
}

.account-form-head p {
  color: var(--muted-strong);
  font-size: 15px;
  margin: 0;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.account-field label {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 850;
}

.account-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-input:focus {
  border-color: rgba(18, 163, 168, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 163, 168, 0.12);
}

.account-password-field {
  position: relative;
}

.account-password-field .account-input {
  padding-right: 96px;
}

.account-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
}

.account-password-toggle:hover {
  background: var(--primary-soft);
}

.account-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted-strong);
  font-size: 13px;
  /*font-weight: 700;*/
  line-height: 1.35;
}

.account-checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.account-checkbox-inline {
  align-items: center;
}

.account-form-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-muted-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.account-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.account-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.account-feedback {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.account-feedback.is-success {
  color: var(--success);
}

.account-feedback.is-error {
  color: #b42318;
}

.dms-maintenance-notice {
  display: block;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #f1b7bd;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f2632;
  font-weight: 700;
  line-height: 1.45;
}

.account-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.account-reassurance {
  padding: 0 0 76px;
  background: var(--bg);
}

.account-reassurance-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: center;
  margin-top: 44px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.account-reassurance-card h2 {
  color: var(--primary-strong);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.052em;
  margin-bottom: 0;
}

.account-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-reassurance-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #f8fbff;
  border: 1px solid var(--line);
}

.account-reassurance-grid span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.account-reassurance-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.account-footer {
  background: #081d34;
  color: #fff;
  padding: 34px 0;
}

.account-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-footer-brand .brand-mark {
  color: #fff;
  font-size: 30px;
}

.account-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 12px 0 0;
  max-width: 420px;
  font-size: 14px;
}

.account-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.account-footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  /*font-weight: 750;*/
}

.account-footer-links a:hover {
  color: #fff;
}

@media (max-width: 1120px) {
  .account-hero-grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    max-width: 760px;
  }

  .account-trust-list,
  .account-reassurance-card,
  .account-reassurance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .account-header-inner {
    min-height: 70px;
  }

  .account-hero {
    padding: 46px 0 38px;
  }

  .account-trust-list {
    max-width: 760px;
  }

  .account-reassurance {
    padding-bottom: 64px;
  }

  .account-footer-inner {
    display: grid;
    justify-items: start;
  }

  .account-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .account-header-tools {
    gap: 10px;
  }

  .account-back-link {
    display: none;
  }

  .account-intro h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .account-lead {
    font-size: 17px;
  }

  .account-panel,
  .account-reassurance-card {
    border-radius: 24px;
    padding: 24px 20px;
  }

  .account-tabs {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-submit-row {
    display: grid;
    width: 100%;
  }

  .account-submit {
    width: 100%;
  }

  .account-form-options {
    display: grid;
  }

  .account-reassurance-grid article {
    min-height: auto;
  }

  .account-footer-links {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .account-panel,
  .account-reassurance-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .account-password-field .account-input {
    padding-right: 82px;
  }

  .account-password-toggle {
    padding: 0 10px;
  }
}

/* Patch — wider centered account panel */
.account-hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

.account-panel {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 940px) {
  .account-panel {
    width: min(100%, 720px);
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .account-hero-grid {
    display: block;
  }

  .account-panel {
    width: 100%;
    max-width: 100%;
  }
}

.client-dashboard-logout {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.client-dashboard-logout:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.dms-turnstile-widget {
  width: 100%;
  min-height: 78px;
  overflow-x: auto;
  overflow-y: hidden;
}

.account-2fa-form {
  padding-top: 4px;
}

.account-form[hidden],
#signin-2fa-form[hidden] {
  display: none !important;
}

.account-code-input {
  width: 100%;
  max-width: none;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: 0.28em;
  text-align: center;
}

.account-2fa-form .account-submit-row {
  align-items: stretch;
}

@media (max-width: 680px) {
  .client-dashboard-logout {
    padding: 0 13px;
  }
}
