/* Shared account presentation. Authentication behavior remains in auth.js. */
:root {
  color-scheme: dark;
  --auth-bg: #050b15;
  --auth-line: #1b2c43;
  --auth-text: #f2f6ff;
  --auth-muted: #91a0b6;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 37%, rgb(17 72 159 / 14%), transparent 56%), var(--auth-bg);
  color: var(--auth-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header {
  position: relative;
  height: 78px;
  padding: 0 max(32px, calc((100vw - 1344px) / 2));
  border-bottom: 1px solid #172336;
  background: rgb(5 11 21 / 88%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.brand-mark {
  width: 35px;
  height: 27px;
  flex: none;
}
.account-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.account-nav a {
  color: #9daec4;
  font-size: 12px;
  font-weight: 500;
  transition: color 160ms ease, border-color 160ms ease;
}
.account-nav a:hover {
  color: #fff;
}
.account-nav .account-nav-cta {
  padding: 10px 16px;
  border: 1px solid #304665;
  border-radius: 7px;
  background: #0d192b;
  color: #eaf1ff;
}
.account-nav .account-nav-cta:hover {
  border-color: #5687cf;
}

.account-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 143px);
  margin: 0;
  padding: 52px 24px;
}

.account-main::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 50%;
  width: min(800px, 100%);
  height: 520px;
  transform: translateX(-50%);
  background-image: linear-gradient(rgb(51 92 148 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(51 92 148 / 7%) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse, #000, transparent 69%);
  content: "";
  pointer-events: none;
}

.auth-overline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8baddd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.auth-overline::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4c98ff;
  box-shadow: 0 0 12px #2578ff;
  content: "";
}

.account-panel {
  position: relative;
  width: 432px;
  max-width: 100%;
  min-width: 0;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: linear-gradient(150deg, #0c192a, #09121f 65%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%), 0 1px 0 rgb(255 255 255 / 3%) inset;
}

.account-panel::before {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #528dde80, transparent);
  content: "";
}
.auth-emblem {
  display: grid;
  width: 57px;
  height: 57px;
  margin: 0 auto 23px;
  place-items: center;
  border: 1px solid #29436b;
  border-radius: 14px;
  background: linear-gradient(150deg, #162d50, #0c1a30);
  box-shadow: 0 7px 22px rgb(7 22 48 / 28%);
}
.auth-emblem svg {
  width: 32px;
  height: 24px;
}
.account-panel h1, .account-panel h2 {
  margin: 0 0 9px;
  color: var(--auth-text);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.8px;
  text-align: center;
}
.account-panel > p {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.auth-form {
  margin-top: 28px;
}
.auth-form label {
  display: block;
  margin: 19px 0 9px;
  color: #cbd7e9;
  font-size: 11px;
  font-weight: 500;
}
.auth-form > div:first-child label, .auth-form > [hidden] + div label {
  margin-top: 0;
}
.auth-form input {
  width: 100%;
  height: 45px;
  padding: 12px 14px;
  border: 1px solid #23354e;
  border-radius: 7px;
  outline: none;
  background: #07111f;
  color: #edf4ff;
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-form input::placeholder {
  color: #586f8d;
  opacity: 1;
}
.auth-form input:hover {
  border-color: #3c5578;
}
.auth-form input:focus, .auth-form input:focus-visible {
  border-color: #377fef;
  outline: none;
  box-shadow: 0 0 0 3px rgb(23 119 255 / 14%);
}
.auth-form input:-webkit-autofill {
  -webkit-text-fill-color: #edf4ff;
  box-shadow: 0 0 0 100px #0c1a2e inset;
}
.auth-note {
  margin-top: 8px;
  color: #71869f;
  font-size: 10px;
  line-height: 1.5;
}
.auth-captcha {
  min-width: 0;
  margin-top: 22px;
}
.auth-captcha:empty {
  margin-top: 0;
}

.auth-form .button.primary, .account-panel > .button.primary {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px 20px;
  border: 1px solid #428aff;
  border-radius: 7px;
  background: linear-gradient(180deg, #1b7cff, #0964ee);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgb(0 81 224 / 18%);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.auth-form .button.primary:hover:not(:disabled), .account-panel > .button.primary:hover {
  transform: none;
  background: linear-gradient(180deg, #328cff, #1270ff);
  box-shadow: 0 5px 20px rgb(0 81 224 / 25%);
}
.auth-form button:disabled {
  opacity: 0.48;
  box-shadow: none;
}
.account-panel .auth-status {
  min-height: 0;
  margin-top: 18px;
  color: #b3c8e6;
  font-size: 11px;
  text-align: left;
}
.account-panel .auth-status:empty {
  display: none;
}
.auth-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 21px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #1c2b41;
}
.auth-links a {
  color: #9bb7de;
  font-size: 11px;
  line-height: 1.5;
}
.auth-links a:first-child {
  color: #55a0ff;
}
.auth-links a:hover {
  color: #cce1ff;
}
.auth-links a:last-child:not(:first-child) {
  flex-basis: 100%;
  color: #6f88aa;
  font-size: 10px;
  text-align: center;
}
.auth-context {
  color: #657a96;
  font-size: 11px;
  text-align: center;
}
.auth-context a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9bb0cc;
  transition: color 160ms ease;
}
.auth-context a:hover {
  color: #edf5ff;
}
.auth-context svg {
  width: 14px;
  height: 14px;
}

.account-details {
  margin: 26px 0;
  padding: 0 18px 18px;
  border: 1px solid #1d3049;
  border-radius: 8px;
  background: #07111f;
}
.account-details dt {
  margin-top: 18px;
  color: #7088a8;
  font-size: 10px;
}
.account-details dd {
  margin: 6px 0 0;
  color: #dfeafb;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-details .account-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #70d7b1;
}
.account-verified svg {
  width: 13px;
  height: 13px;
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-actions a, .account-actions button {
  color: #a9c7ed;
  font-size: 11px;
  line-height: 1.5;
}
.account-actions button {
  padding: 10px 15px;
  border: 1px solid #2d4261;
  border-radius: 6px;
  background: #112039;
}
.account-actions button:hover {
  border-color: #5877a2;
}

.account-footer {
  display: flex;
  width: calc(100% - 64px);
  max-width: 1344px;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #172336;
  color: #596d88;
  font-size: 10px;
  line-height: 1.5;
}
.account-footer a {
  color: #8199b9;
}
.account-footer a:hover {
  color: #c9dbf4;
}

@media (max-width: 600px) {
  .header {
    height: 68px;
    padding: 0 20px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    width: 29px;
    height: 23px;
  }
  .account-nav {
    gap: 16px;
  }
  .account-nav a {
    font-size: 11px;
  }
  .account-nav .account-nav-home {
    display: none;
  }
  .account-nav .account-nav-cta {
    padding: 9px 12px;
  }
  .account-main {
    min-height: calc(100svh - 133px);
    padding: 36px 20px;
    gap: 22px;
  }
  .account-panel {
    padding: 29px 25px;
    border-radius: 12px;
  }
  .auth-overline {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .auth-form input {
    font-size: 16px;
  }
  .account-footer {
    width: calc(100% - 40px);
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
