:root {
  color-scheme: dark;
  --page-background: #202123;
  --page-gutter: clamp(12px, 3vw, 28px);
  --header-mark-size: clamp(52px, 8vw, 68px);
  --header-block-padding: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: var(--page-gutter) var(--page-gutter) 0;
  background: var(--page-background);
}

.site-header {
  position: sticky;
  z-index: 1;
  top: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: var(--header-block-padding) clamp(14px, 2vw, 24px);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(72 74 78 / 50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-logo {
  display: block;
  flex: none;
  border-radius: 12px;
}

.site-logo:focus-visible {
  outline: 2px solid #f3f4f6;
  outline-offset: 2px;
}

.site-logo img {
  display: block;
  width: var(--header-mark-size);
  height: auto;
  object-fit: contain;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: #e7eaed;
  font: 600 0.9375rem system-ui, sans-serif;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.site-nav a:focus-visible {
  outline: 2px solid #c6e3ff;
  outline-offset: 2px;
}

.site-footer {
  width: min(100%, 1120px);
  margin: auto auto 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-block: 6px;
  border-top: 1px solid rgb(235 240 242 / 18%);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d1d9d5;
  font: 0.875rem/1.4 system-ui, sans-serif;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:focus-visible {
  outline: 2px solid #c6e3ff;
  outline-offset: 2px;
}

.account-link {
  display: grid;
  width: var(--header-mark-size);
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #c5d0dd;
}

.account-link:hover,
.account-link[aria-current="page"] {
  color: #f5f7fa;
}

.account-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #182029;
  object-fit: cover;
}

.account-link .account-avatar {
  width: clamp(36px, 5vw, 42px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 28%);
}

.person-icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.person-icon::before,
.person-icon::after {
  position: absolute;
  left: 50%;
  box-sizing: border-box;
  border: 2px solid currentColor;
  translate: -50% 0;
  content: "";
}

.person-icon::before {
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.person-icon::after {
  bottom: 2px;
  width: 22px;
  height: 10px;
  border-radius: 12px 12px 4px 4px;
}

.account-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  isolation: isolate;
  color: #f5f7fa;
  font: 1rem/1.45 system-ui, sans-serif;
}

.account-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(rgb(12 19 28 / 22%), rgb(12 19 28 / 42%)),
    var(--account-backdrop, url("./assets/ocean.webp")) var(--account-backdrop-position, center) / cover no-repeat;
  content: "";
}

.account-layout {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  padding-block: clamp(24px, 5vh, 56px);
}

.account-panel {
  width: min(100%, 440px);
  padding: clamp(16px, 4vw, 30px);
  border: 1px solid rgb(234 240 249 / 24%);
  border-radius: 26px;
  background: rgb(16 23 33 / 79%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.account-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.account-brand img {
  width: clamp(60px, 12vw, 76px);
  height: auto;
}

.account-brand h1 {
  margin: 0;
  font-size: clamp(1.375rem, 4.3vw, 1.75rem);
  line-height: 1.15;
}

.account-tabs:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: rgb(5 11 18 / 45%);
}

.account-tabs a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #d6dfe9;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
}

.account-tabs a:hover {
  background: rgb(255 255 255 / 9%);
}

.account-tabs a[aria-current="page"] {
  background: #384659;
  color: #fff;
  font-weight: 650;
}

.account-form:not([hidden]) {
  display: grid;
  gap: 12px;
}

.account-form label {
  display: grid;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 550;
}

.account-form input,
.account-submit {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgb(226 236 250 / 28%);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
}

.account-form input {
  background: rgb(7 12 19 / 64%);
  color: #fff;
}

.account-hint {
  color: #ced8e4;
  font-weight: 400;
}

.account-submit {
  margin-top: 4px;
  background: #dbe6f2;
  color: #152131;
  font-weight: 700;
  cursor: pointer;
}

.account-submit:hover {
  background: #f2f6fb;
}

.account-link:focus-visible,
.account-panel :is(a, button, input):focus-visible {
  outline: 2px solid #c6e3ff;
  outline-offset: 2px;
}

.account-error {
  margin: 0 0 12px;
  color: #ffd1c7;
  font-size: 0.9375rem;
}

.account-mascot {
  position: fixed;
  right: var(--page-gutter);
  bottom: 0;
  display: block;
  width: min(18vw, 270px, 31vh);
  height: auto;
  pointer-events: none;
}

@media (max-width: 820px) {
  .account-layout {
    padding-bottom: 0;
  }

  .account-mascot {
    position: static;
    justify-self: end;
    width: clamp(128px, 30vw, 190px);
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .account-layout {
    align-content: start;
  }

  .account-panel {
    border-radius: 20px;
  }

  .account-brand {
    margin-bottom: 14px;
  }
}
