/* Account-only surface; shared Portal navigation and authentication stay unchanged. */
.account-flow {
  --account-green: #08743c;
  --account-green-dark: #075a30;
  --account-ink: #19382a;
  --account-muted: #52675c;
  --account-line: #d6e3da;
  --account-error: #a52834;
  width: 100%;
  max-width: 480px;
  margin: clamp(20px, 4vw, 40px) auto 28px;
  color: var(--account-ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-flow *,
.account-flow *::before,
.account-flow *::after {
  box-sizing: border-box;
}

.account-flow .account-flow__surface {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--account-line);
  border-top: 3px solid var(--account-green);
  border-radius: 18px;
  background: linear-gradient(155deg, #fff 70%, #f6faf7);
  box-shadow: 0 16px 40px rgba(25, 56, 42, 0.07), 0 2px 6px rgba(25, 56, 42, 0.03);
}

.account-flow .account-flow__header {
  margin-bottom: 20px;
}

.account-flow .account-flow__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--account-green-dark);
  font-size: 0.8125em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.account-flow .account-flow__eyebrow svg {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid #d5e7d9;
  border-radius: 10px;
  background: #edf6ef;
  fill: currentColor;
}

.account-flow h1 {
  margin: 0 0 8px;
  color: var(--account-ink);
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: 1.75em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.account-flow .account-flow__intro {
  margin: 0 0 16px;
  color: var(--account-muted);
  font-size: 0.9375em;
}

.account-flow .account-flow__header .account-flow__intro {
  margin-bottom: 0;
}

.account-flow .account-flow__revision {
  margin: 10px 0 0;
  color: var(--account-muted);
  font-size: 0.75em;
}

.account-flow .account-flow__hint,
.account-flow .account-flow__field-hint {
  display: block;
  margin: 0 0 16px;
  color: var(--account-muted);
  font-size: 0.875em;
  line-height: 1.5;
}

.account-flow .account-flow__field {
  margin-bottom: 16px;
  min-width: 0;
}

.account-flow .form-label {
  margin-bottom: 6px;
  color: var(--account-ink);
  font-size: 0.9375em;
  font-weight: 600;
}

.account-flow .form-control {
  min-height: 46px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8cbbf;
  border-radius: 9px;
  color: var(--account-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.account-flow .form-control:focus {
  border-color: var(--account-green);
  box-shadow: 0 0 0 3px rgba(8, 116, 60, 0.14);
  outline: 2px solid var(--account-green);
  outline-offset: 2px;
}

.account-flow .form-control.input-validation-error {
  border-color: var(--account-error);
}

.account-flow .account-flow__field-hint {
  margin: 6px 0 0;
}

.account-flow .account-flow__field-error {
  display: block;
  margin-top: 6px;
  color: var(--account-error);
  font-size: 0.875em;
  line-height: 1.45;
}

.account-flow .field-validation-valid,
.account-flow .validation-summary-valid {
  display: none;
}

.account-flow .alert,
.account-flow .validation-summary-errors {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.875em;
  line-height: 1.5;
}

.account-flow .alert-info,
.account-flow .alert-success {
  color: #225439;
  border-color: #cde3d4;
  background: #edf6ef;
}

.account-flow .alert-warning {
  color: #694b14;
  border-color: #ead5a6;
  background: #fff8e9;
}

.account-flow .validation-summary-errors {
  color: var(--account-error);
  border-color: #e8c5c9;
  background: #fff3f4;
}

.account-flow .account-flow__validation ul {
  margin: 0;
  padding-left: 18px;
}

.account-flow .account-flow__validation li + li {
  margin-top: 4px;
}

.account-flow .account-flow__remember {
  position: relative;
  min-height: 44px;
  margin: 0 0 16px;
  padding-left: 30px;
}

.account-flow .account-flow__remember .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 12px;
  margin-left: -30px;
  border-color: #91ac9a;
}

.account-flow .form-check-input:checked {
  border-color: var(--account-green);
  background-color: var(--account-green);
}

.account-flow .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(8, 116, 60, 0.14);
  outline: 2px solid var(--account-green);
  outline-offset: 2px;
}

.account-flow .account-flow__remember .form-check-label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--account-muted);
  font-size: 0.875em;
  cursor: pointer;
}

.account-flow .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 0.9375em;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}

.account-flow .btn.btn-primary {
  color: #fff;
  border-color: var(--account-green);
  background: var(--account-green);
  box-shadow: 0 3px 7px rgba(8, 116, 60, 0.1);
}

.account-flow .btn.btn-primary:hover,
.account-flow .btn.btn-primary:active {
  color: #fff;
  border-color: var(--account-green-dark);
  background: var(--account-green-dark);
}

.account-flow .btn.btn-outline-secondary {
  color: var(--account-green-dark);
  border-color: #b8cbbf;
  background: #fff;
}

.account-flow .btn.btn-outline-secondary:hover,
.account-flow .btn.btn-outline-secondary:active {
  color: var(--account-green-dark);
  border-color: var(--account-green);
  background: #edf6ef;
}

.account-flow a,
.account-flow .btn.btn-link {
  color: var(--account-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-flow a.btn {
  text-decoration: none;
}

.account-flow a:hover,
.account-flow .btn.btn-link:hover {
  color: var(--account-ink);
}

.account-flow .btn:focus-visible,
.account-flow a:focus-visible,
.account-flow summary:focus-visible {
  outline: 2px solid var(--account-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

.account-flow .account-flow__footer {
  display: grid;
  justify-items: center;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--account-line);
}

.account-flow .account-flow__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 0.875em;
}

.account-flow .account-flow__back svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.account-flow .account-flow__details {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  background: #f5f9f6;
  font-size: 0.875em;
}

.account-flow .account-flow__details > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.account-flow .account-flow__details > div + div {
  margin-top: 6px;
}

.account-flow .account-flow__details dt {
  color: var(--account-muted);
  font-weight: 500;
}

.account-flow .account-flow__details dd {
  min-width: 0;
  margin: 0;
  font-weight: 600;
}

.account-flow .account-flow__skip {
  margin-top: 10px;
  text-align: center;
}

.account-flow .account-flow__skip .account-flow__field-hint {
  margin-top: 0;
}

.account-flow .account-flow__code {
  min-height: 54px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

.account-flow .account-flow__device-help {
  margin-top: 12px;
}

.account-flow .account-flow__alternative {
  margin-top: 16px;
}

.account-flow .account-flow__recovery {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--account-line);
}

.account-flow .account-flow__recovery summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--account-green-dark);
  font-size: 0.875em;
  font-weight: 600;
  cursor: pointer;
}

.account-flow .account-flow__recovery-form {
  margin-top: 12px;
}

@media (max-width: 575.98px) {
  .account-flow {
    margin-top: 20px;
  }

  .account-flow .account-flow__surface {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .account-flow h1 {
    font-size: 1.625em;
  }
}

@media (forced-colors: active) {
  .account-flow .form-control:focus,
  .account-flow .form-check-input:focus,
  .account-flow .btn:focus-visible,
  .account-flow a:focus-visible,
  .account-flow summary:focus-visible {
    outline-color: Highlight;
  }
}
