.account-page {
  padding-top: 150px;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  align-items: start;
  gap: clamp(48px, 8vw, 120px);
}

.account-intro {
  max-width: 600px;
  padding-top: 22px;
}

.account-intro h1 {
  margin: 22px 0 25px;
  color: var(--foreground);
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.account-intro > p:last-child {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.account-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(108, 140, 255, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.account-message {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(98, 246, 210, 0.25);
  border-radius: 12px;
  color: #cafff2;
  background: rgba(98, 246, 210, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.account-message.is-error {
  border-color: rgba(255, 117, 72, 0.32);
  color: #ffd0c1;
  background: rgba(255, 117, 72, 0.1);
}

.account-message.is-success {
  max-width: 720px;
  margin: 34px 0 0;
}

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

.account-form label {
  margin-top: 8px;
  color: #e4e7ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.account-form label span {
  color: var(--dim);
  font-weight: 500;
}

.account-form input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  color: var(--foreground);
  background: rgba(4, 6, 12, 0.42);
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, background 180ms ease;
}

.account-form input:not([type="checkbox"]):focus {
  border-color: rgba(98, 246, 210, 0.64);
  background: rgba(4, 6, 12, 0.65);
}

.account-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--muted) !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.account-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
}

.account-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 0 17px;
  border: 1px solid var(--cyan);
  border-radius: 13px;
  color: #07100e;
  background: var(--cyan);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.account-submit:hover {
  transform: translateY(-2px);
  background: #8fffe4;
}

.account-form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

.account-form-footer a,
.account-card-links a {
  color: var(--cyan);
  transition: color 180ms ease;
}

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

.account-dashboard {
  display: block;
}

.account-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.account-dashboard-heading .account-intro {
  padding-top: 0;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.account-logout:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 246, 210, 0.4);
  color: var(--foreground);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.account-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.account-card-accent {
  background:
    radial-gradient(circle at 100% 0, rgba(98, 246, 210, 0.14), transparent 56%),
    rgba(255, 255, 255, 0.045);
}

.account-card-label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-card h2 {
  max-width: 420px;
  margin: 18px 0 25px;
  color: var(--foreground);
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-details dt,
.account-details dd {
  margin: 0;
  font-size: 12px;
}

.account-details dt {
  color: var(--dim);
}

.account-details dd {
  max-width: 64%;
  overflow-wrap: anywhere;
  color: var(--foreground);
  text-align: right;
}

.account-card-links {
  display: grid;
  gap: 12px;
}

.account-card-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .account-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .account-intro {
    max-width: 680px;
    padding-top: 0;
  }

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

@media (max-width: 680px) {
  .account-page {
    padding-top: 112px;
  }

  .account-intro h1 {
    margin-top: 18px;
    font-size: clamp(48px, 15vw, 72px);
  }

  .account-intro > p:last-child {
    font-size: 16px;
  }

  .account-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .account-dashboard-heading {
    display: block;
  }

  .account-logout {
    margin-top: 24px;
  }

  .account-card {
    min-height: 0;
    padding: 23px;
  }
}
