.account-page {
  max-width: 940px;
  margin: 26px auto 38px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid #d9e3ee;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.account-card__intro {
  position: relative;
  padding: 42px 36px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #173553 0%, #234f79 100%);
  color: #ffffff;
}

.account-card__intro::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.account-eyebrow {
  margin: 0 0 11px;
  color: #cce1f6;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-card__intro h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.account-card__intro > p:not(.account-eyebrow) {
  max-width: 38rem;
  margin: 18px 0 0;
  color: #e5eff8;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.65;
}

.account-feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.account-feature-list li {
  position: relative;
  padding-left: 28px;
  color: #f1f7fc;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.account-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid #9ed0b4;
  border-radius: 50%;
}

.account-feature-list li::after {
  content: "";
  position: absolute;
  top: calc(0.18rem + 10px);
  left: 10px;
  width: 6px;
  height: 3px;
  border-bottom: 2px solid #9ed0b4;
  border-left: 2px solid #9ed0b4;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.account-card__panel {
  padding: 38px 38px 34px;
}

.account-card__panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.account-card__panel > p {
  margin: 9px 0 0;
  color: #526174;
  line-height: 1.55;
}

.account-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.account-field label {
  display: block;
  margin: 0 0 7px;
  color: #23364b;
  font-size: 0.83rem;
  font-weight: 800;
}

.account-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #bdcad8;
  border-radius: 11px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 550;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.account-field input:focus {
  border-color: #315f8d;
  box-shadow: 0 0 0 4px rgba(49, 95, 141, 0.13);
}

.account-field input:disabled {
  background: #f3f6f9;
  color: #64748b;
  cursor: not-allowed;
}

.account-field__hint {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 550;
  line-height: 1.45;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.account-submit,
.account-button-link {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #1e3a5f;
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.account-submit:hover,
.account-button-link:hover {
  background: #173553;
  color: #ffffff;
  text-decoration: none;
}

.account-submit:focus-visible,
.account-button-link:focus-visible,
.account-link:focus-visible {
  outline: 3px solid rgba(30, 58, 95, 0.3);
  outline-offset: 3px;
}

.account-submit:disabled {
  opacity: 0.64;
  cursor: wait;
}

.account-button-link--secondary {
  border-color: #cbd5e1;
  background: #f4f7fa;
  color: #1e293b;
}

.account-button-link--secondary:hover {
  background: #e8eef4;
  color: #0f172a;
}

.account-status {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.account-status--success {
  border-color: #a7d7bd;
  background: #effaf3;
  color: #075c3f;
}

.account-status--error {
  border-color: #efb7b7;
  background: #fff4f4;
  color: #8f1d1d;
}

.account-status--working {
  border-color: #b7d0e7;
  background: #f1f7fc;
  color: #244d73;
}

.account-links {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-links a,
.account-link {
  color: #1d4f7a;
  font-weight: 800;
}

.account-session {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #c9d8e6;
  border-radius: 13px;
  background: #f6f9fc;
}

.account-session h3 {
  margin: 0;
  color: #12263a;
  font-size: 1.05rem;
}

.account-session p {
  margin: 8px 0 0;
  color: #526174;
  line-height: 1.5;
}

.account-session strong {
  color: #12263a;
  overflow-wrap: anywhere;
}

.account-session .account-actions {
  margin-top: 16px;
}

.account-privacy-note {
  margin-top: 22px;
  padding: 13px 14px;
  border-left: 4px solid #8fb0ce;
  border-radius: 9px;
  background: #f5f8fb;
  color: #45576a;
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.5;
}

.account-callback-state {
  margin-top: 25px;
  text-align: left;
}

.account-callback-state .account-status {
  margin-top: 0;
}

.account-loader {
  width: 28px;
  height: 28px;
  margin: 0 0 16px;
  border: 3px solid #d7e2ec;
  border-top-color: #1e3a5f;
  border-radius: 50%;
  animation: account-spin 800ms linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

  .account-card__intro {
    padding: 31px 25px;
  }

  .account-feature-list {
    margin-top: 22px;
  }

  .account-card__panel {
    padding: 30px 25px 28px;
  }
}

@media (max-width: 480px) {
  .account-page {
    margin-top: 14px;
  }

  .account-card {
    border-radius: 15px;
  }

  .account-card__intro,
  .account-card__panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .account-actions,
  .account-submit,
  .account-button-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loader {
    animation-duration: 1.8s;
  }
}
