/*
 * Mizora account surface
 *
 * Intentionally does NOT establish a second visual
 * theme. Typography, page background, base colors,
 * header, and site identity come from the main
 * Mizora stylesheet.
 */

.account-page {
  min-height: 100vh;
}

.account-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 0 88px;
}


/* ---------------------------------------------------------
   Intro
   --------------------------------------------------------- */

.account-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.account-label {
  margin: 0 0 20px;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.58;
}

.account-heading h1 {
  max-width: 760px;
  margin: 0;
  font: inherit;
  font-family: inherit;
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: inherit;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.account-lede {
  max-width: 560px;
  margin: 22px 0 0;
  font: inherit;
  line-height: 1.75;
  opacity: 0.66;
}


/* ---------------------------------------------------------
   Account sections
   --------------------------------------------------------- */

.account-access {
  max-width: 920px;
  padding: 28px 0 0;
  border-top: 1px solid
    color-mix(
      in srgb,
      currentColor 18%,
      transparent
    );
}

.account-access[hidden] {
  display: none;
}

.account-section-heading,
.account-device-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
}

.account-section-heading > span,
.account-device-preview > span {
  padding-top: 7px;
  font-size: 11px;
  opacity: 0.5;
}

.account-section-heading h2,
.account-device-preview h2 {
  margin: 0;
  font: inherit;
  font-family: inherit;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: inherit;
  line-height: 1;
  letter-spacing: -0.035em;
}

.account-status {
  min-height: 24px;
  margin: 24px 0 12px 96px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.65;
}

.account-status[data-tone="error"] {
  opacity: 1;
}

.account-status[data-tone="success"] {
  opacity: 1;
}


/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */

.account-form {
  max-width: 600px;
  margin-left: 96px;
  display: grid;
  gap: 18px;
}

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

.account-form label > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.account-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

.account-form input:focus {
  border-color: #b8bec8;
}

.account-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f5f6f8;
}

.account-form button,
.account-actions button,
.account-actions a {
  width: fit-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.account-form button {
  margin-top: 10px;
}

.account-form button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.account-note {
  max-width: 600px;
  margin: 28px 0 0 96px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.54;
}


/* ---------------------------------------------------------
   Authenticated view
   --------------------------------------------------------- */

.account-details {
  max-width: 600px;
  margin: 40px 0 70px 96px;
}

.account-details > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      currentColor 14%,
      transparent
    );
}

.account-details dt {
  opacity: 0.5;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-device-preview {
  padding-top: 44px;
  border-top: 1px solid
    color-mix(
      in srgb,
      currentColor 14%,
      transparent
    );
}

.account-device-preview p:last-child {
  max-width: 520px;
  line-height: 1.7;
  opacity: 0.6;
}

.account-actions {
  margin: 48px 0 0 96px;
  display: flex;
  gap: 28px;
  align-items: center;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .account-main {
    width: min(100% - 30px, 1180px);
    padding-top: 34px;
    padding-bottom: 72px;
  }

  .account-heading {
    margin-bottom: 42px;
  }

  .account-heading h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .account-section-heading,
  .account-device-preview {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .account-status,
  .account-form,
  .account-note,
  .account-details,
  .account-actions {
    margin-left: 54px;
  }

  .account-form {
    max-width: none;
  }
}

  .account-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

  .account-heading h1 {
  max-width: 760px;
  margin: 0;
  font: inherit;
  font-family: inherit;
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: inherit;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

  .account-section-heading,
  .account-device-preview {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .account-status,
  .account-form,
  .account-note,
  .account-details,
  .account-actions {
    margin-left: 54px;
  }

  .account-form {
  max-width: 600px;
  margin-left: 96px;
  display: grid;
  gap: 18px;
}
}

/* === ACCOUNT HOMEPAGE FOOTER FLOW START === */

body.account-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.account-main {
  flex: 1 0 auto;
}

/* === ACCOUNT HOMEPAGE FOOTER FLOW END === */
