/* Clearer member account and responsive order history. */
.auth-page .auth-lede {
  font-size: 14px;
}

.auth-page .auth-perks {
  gap: 10px;
}

.auth-page .auth-perks > div {
  padding: 15px;
}

.auth-page .auth-perks p {
  font-size: 12px;
}

.auth-page .auth-perks strong {
  font-size: 12px;
}

.minecraft-login-panel {
  padding: 20px;
  border: 1px solid #29413d;
  border-radius: 10px;
  background: linear-gradient(145deg, #0d1d20, #0a1519);
}

.minecraft-login-panel h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  letter-spacing: -.045em;
}

.minecraft-login-panel > p:not(.auth-status):not(.auth-fineprint) {
  font-size: 12px;
  line-height: 1.7;
}

.minecraft-login-form label,
.minecraft-link-card label {
  display: grid;
  gap: 8px;
  margin: 16px 0 12px;
  color: #c0cfcc;
  font-size: 12px;
  font-weight: 600;
}

.minecraft-login-form input,
.minecraft-link-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #2b4146;
  border-radius: 7px;
  background: #071116;
  color: #eef7f4;
  font-size: 14px;
}

.minecraft-login-form input::placeholder,
.minecraft-link-card input::placeholder {
  color: #788b8d;
}

.minecraft-login-form .button,
.minecraft-login-panel > .button,
.discord-login {
  min-height: 48px;
  font-size: 12px;
}

.minecraft-login-challenge {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #36554a;
  border-radius: 8px;
  background: #0c211b;
}

.minecraft-login-challenge p {
  color: #b3c5bf;
  font-size: 12px;
  line-height: 1.65;
}

.minecraft-login-challenge code,
.minecraft-link-challenge code {
  display: block;
  margin: 10px 0;
  overflow-wrap: anywhere;
  color: #8df0d7;
  font-size: 12px;
}

.auth-page .auth-fineprint {
  font-size: 10px;
}

.account-page .button:disabled,
.auth-page .button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.account-wrap > h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 50px);
}

.account-intro {
  max-width: 620px;
  margin: 0 0 25px;
  color: #9aadaf;
  font-size: 13px;
  line-height: 1.75;
}

.member-card {
  min-height: 92px;
  padding: 20px 22px;
}

.member-card h2 {
  font-size: 18px;
}

.member-card p {
  font-size: 12px;
}

.member-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 6px;
}

.member-overview article {
  display: grid;
  gap: 8px;
  padding: 17px 19px;
  border: 1px solid #20363b;
  border-radius: 10px;
  background: linear-gradient(145deg, #0e1b20, #091318);
}

.member-overview span {
  color: #91a5a8;
  font-size: 11px;
}

.member-overview strong {
  color: #eef7f4;
  font-size: 25px;
  line-height: 1;
}

.account-section {
  margin-top: 37px;
}

.account-section .section-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.account-section .section-heading > div > p {
  font-size: 12px;
}

.account-orders {
  min-width: 0;
  font-size: 12px;
}

.account-orders th {
  padding: 13px 11px;
  font-size: 9px;
}

.account-orders td {
  padding: 14px 11px;
  color: #d5e1df;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  vertical-align: middle;
}

.account-orders tbody tr:hover:not(.account-empty) {
  background: #ffffff05;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #39434a;
  border-radius: 999px;
  background: #192127;
  color: #bec9ca;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.account-status-pill.success {
  border-color: #2d6254;
  background: #10271f;
  color: #83e5c7;
}

.account-status-pill.waiting {
  border-color: #665438;
  background: #292216;
  color: #ebca80;
}

.account-status-pill.danger {
  border-color: #633a43;
  background: #2b171d;
  color: #ffadb2;
}

.account-empty td {
  padding: 28px 18px;
  color: #9aadaf;
  text-align: center;
}

.account-empty strong,
.account-empty span,
.account-empty a {
  display: block;
  margin: 0 0 8px;
}

.account-empty strong {
  color: #eef7f4;
  font-size: 14px;
}

.account-empty a,
.account-order-help {
  color: var(--accent);
  font-size: 11px;
}

.account-order-help {
  margin: 12px 0 0;
  color: #899da0;
  line-height: 1.7;
}

.account-status + #account-retry {
  margin: -5px 0 12px;
}

@media (max-width: 760px) {
  .account-wrap {
    padding: 38px 20px 64px;
  }

  .member-overview {
    gap: 9px;
  }

  .member-overview article {
    padding: 14px;
  }

  .member-overview span {
    font-size: 10px;
  }

  .account-section .table-wrap {
    overflow: visible;
  }

  .account-orders,
  .account-orders tbody {
    display: block;
    width: 100%;
  }

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

  .account-orders tbody tr:not(.account-empty) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin: 0 0 12px;
    padding: 3px 13px;
    border: 1px solid #20363b;
    border-radius: 10px;
    background: linear-gradient(145deg, #0e1b20, #091318);
  }

  .account-orders tbody tr:not(.account-empty) td {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 11px 2px;
    border-bottom: 1px solid #ffffff0d;
    overflow-wrap: anywhere;
  }

  .account-orders tbody tr:not(.account-empty) td:first-child,
  .account-orders tbody tr:not(.account-empty) td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .account-orders tbody tr:not(.account-empty) td:last-child {
    border-bottom: 0;
  }

  .account-orders td::before {
    content: attr(data-label);
    color: #84999c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .account-orders .order-id-link {
    font-family: var(--mono);
  }

  .account-orders .account-empty {
    display: block;
    padding: 0;
    border: 1px solid #20363b;
    border-radius: 10px;
    background: #0b171d;
  }

  .account-orders .account-empty td {
    display: block;
    padding: 24px 16px;
    border: 0;
  }
}

@media (max-width: 430px) {
  .account-wrap {
    padding: 30px 15px 52px;
  }

  .account-wrap > h1 {
    font-size: 39px;
  }

  .account-intro {
    font-size: 12px;
  }

  .member-card {
    gap: 12px;
    padding: 15px;
  }

  .member-card .button {
    min-height: 42px;
  }

  .member-overview {
    gap: 7px;
  }

  .member-overview article {
    gap: 7px;
    padding: 12px 10px;
  }

  .member-overview span {
    font-size: 9px;
  }

  .member-overview strong {
    font-size: 22px;
  }

  .account-orders tbody tr:not(.account-empty) {
    gap: 0 9px;
    padding: 2px 11px;
  }
}

/* Two-column sign-in layout from the member login mockup. */
.auth-layout {
  width: min(100% - 56px, 1220px);
  max-width: 1220px;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  gap: clamp(34px, 6vw, 82px);
  padding: 48px 0 58px;
}

.auth-welcome {
  position: relative;
  isolation: isolate;
  max-width: 550px;
  padding: 12px 0;
}

.auth-welcome::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  left: -25%;
  width: 85%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #168cff15, transparent 70%);
  content: '';
  pointer-events: none;
}

.auth-welcome h1 {
  margin: 20px 0 16px;
  font-size: clamp(52px, 6.5vw, 78px);
  line-height: .98;
  letter-spacing: -.075em;
}

.auth-welcome .auth-lede {
  max-width: 490px;
  margin: 0;
  font-size: 14px;
}

.auth-welcome .auth-perks {
  max-width: 480px;
  gap: 9px;
  margin: 26px 0 22px;
}

.auth-welcome .auth-perks > div {
  padding: 13px 15px;
}

.auth-welcome-server {
  max-width: 300px;
  gap: 8px;
  margin-top: 23px;
  padding-top: 16px;
}

.auth-welcome-server strong { font-size: 16px; }

.auth-login-card {
  width: 100%;
  max-width: 570px;
  justify-self: end;
  padding: 32px;
}

.auth-form-title {
  margin: 13px 0 7px;
  font-size: 34px;
  letter-spacing: -.06em;
}

.auth-form-intro {
  margin: 0;
  color: #9aafc5;
  font-size: 12px;
  line-height: 1.7;
}

.auth-login-card .minecraft-login-panel { margin-top: 19px; }
.auth-login-card .auth-choice-divider { margin: 20px 0 14px; }
.auth-login-card .auth-status { margin: 8px 0; }

@media (max-width: 1000px) {
  .auth-layout {
    width: min(100% - 40px, 850px);
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    gap: 28px;
  }

  .auth-welcome h1 { font-size: 54px; }
  .auth-login-card { padding: 27px; }
}

@media (max-width: 760px) {
  .auth-layout {
    width: min(100% - 36px, 580px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0 48px;
  }

  .auth-welcome { max-width: none; padding: 4px 0 0; }
  .auth-welcome h1 { margin: 15px 0 11px; font-size: 48px; }
  .auth-welcome .auth-perks { grid-template-columns: 1fr; margin: 18px 0 15px; }
  .auth-welcome .auth-perks > div { padding: 11px 13px; }
  .auth-welcome-server { margin-top: 17px; }
  .auth-login-card { max-width: none; padding: 24px; }
}

@media (max-width: 430px) {
  .auth-layout { width: min(100% - 28px, 580px); gap: 15px; padding-top: 24px; }
  .auth-welcome h1 { font-size: 43px; }
  .auth-login-card { padding: 19px; }
}
