:root {
  color-scheme: dark;

  --bg:
    #07080b;

  --panel:
    rgba(14, 16, 21, 0.86);

  --panel-strong:
    #11141a;

  --line:
    rgba(255, 255, 255, 0.08);

  --line-strong:
    rgba(203, 166, 92, 0.34);

  --text:
    #f4f1e8;

  --muted:
    #96999f;

  --muted-2:
    #6e727a;

  --gold:
    #cba65c;

  --gold-soft:
    #e0c37d;

  --success:
    #8bc6a4;

  --danger:
    #e39a9a;

  --shadow:
    0 32px 90px rgba(0, 0, 0, 0.46);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


* {
  box-sizing: border-box;
}


html {
  min-height: 100%;
  background: var(--bg);
}


body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(203, 166, 92, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 70%,
      rgba(89, 101, 135, 0.08),
      transparent 36%
    ),
    var(--bg);
}


button,
input {
  font: inherit;
}


button {
  border: 0;
}


button,
a {
  -webkit-tap-highlight-color:
    transparent;
}


.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}


.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}


.ambient-one {
  width: 380px;
  height: 380px;
  top: -170px;
  right: -90px;
  background: #cba65c;
}


.ambient-two {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -130px;
  background: #465474;
}


.topbar,
.main,
.footer {
  position: relative;
  z-index: 1;
}


.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}


.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;

  border:
    1px solid var(--line-strong);

  background:
    linear-gradient(
      145deg,
      rgba(203, 166, 92, 0.14),
      rgba(255, 255, 255, 0.02)
    );

  color: var(--gold-soft);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}


.brand-copy {
  direction: ltr;
  display: flex;
  flex-direction: column;
  gap: 1px;
}


.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.19em;
}


.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.32em;
}


.security-state {
  display: flex;
  align-items: center;
  gap: 8px;

  padding:
    8px 11px;

  border:
    1px solid var(--line);

  background:
    rgba(255, 255, 255, 0.025);

  color: var(--muted);

  font-size: 12px;
}


.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);

  box-shadow:
    0 0 0 4px
    rgba(139, 198, 164, 0.09);
}


.main {
  width: min(1180px, calc(100% - 40px));

  margin:
    auto;

  padding:
    48px 0 58px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(380px, 0.9fr);

  gap: 72px;

  align-items: center;
}


.intro {
  max-width: 620px;
}


.eyebrow,
.mini-label {
  color: var(--gold);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;

  direction: ltr;
}


.intro h1 {
  margin:
    16px 0 22px;

  max-width: 650px;

  font-size:
    clamp(
      42px,
      6vw,
      76px
    );

  font-weight: 600;

  line-height: 1.08;

  letter-spacing:
    -0.055em;
}


.intro h1 span {
  color: var(--gold-soft);
}


.intro > p {
  margin: 0;

  max-width: 540px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.95;
}


.trust-row {
  margin-top: 38px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.trust-item {
  padding:
    16px 0;

  display: flex;
  flex-direction: column;
  gap: 5px;
}


.trust-item strong {
  direction: ltr;

  color: #d8d8d5;

  font-size: 11px;
  font-weight: 700;
}


.trust-item span {
  color: var(--muted-2);
  font-size: 11px;
}


.auth-card {
  position: relative;

  min-height: 510px;

  padding:
    36px;

  border:
    1px solid var(--line);

  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.012)
    ),
    var(--panel);

  box-shadow:
    var(--shadow);

  backdrop-filter:
    blur(24px);
}


.auth-card::before {
  content: "";

  position: absolute;

  top: -1px;
  right: 34px;

  width: 88px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}


.view {
  min-height: 436px;
}


.hidden {
  display: none !important;
}


#loading-view,
#fatal-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}


#loading-view h2,
#fatal-view h2 {
  margin:
    22px 0 8px;

  font-size: 21px;
}


#loading-view p,
#fatal-view p {
  margin: 0;

  max-width: 320px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.8;
}


.loader {
  width: 34px;
  height: 34px;

  border:
    1px solid var(--line);

  border-top-color:
    var(--gold);

  border-radius:
    999px;

  animation:
    rotate 0.9s linear infinite;
}


@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}


.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;

  margin-bottom: 30px;
}


.card-heading h2,
.account-top h2 {
  margin:
    7px 0 6px;

  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}


.card-heading p,
.account-top p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}


#login-form {
  display: grid;
  gap: 20px;
}


.field {
  display: grid;
  gap: 9px;
}


.field > span {
  color: #b8babd;

  font-size: 12px;
  font-weight: 600;
}


.field input {
  width: 100%;

  border:
    1px solid var(--line);

  outline: none;

  background:
    rgba(0, 0, 0, 0.22);

  color: var(--text);

  padding:
    14px 15px;

  border-radius:
    0;

  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}


.field input::placeholder {
  color: #555960;
}


.field input:focus {
  border-color:
    rgba(203, 166, 92, 0.55);

  background:
    rgba(0, 0, 0, 0.32);

  box-shadow:
    0 0 0 3px
    rgba(203, 166, 92, 0.06);
}


.password-wrap {
  position: relative;
}


.password-wrap input {
  padding-left: 72px;
}


.password-toggle {
  position: absolute;

  left: 8px;
  top: 50%;

  transform:
    translateY(-50%);

  padding:
    7px 8px;

  background:
    transparent;

  color:
    var(--muted);

  font-size:
    11px;

  cursor:
    pointer;
}


.password-toggle:hover {
  color:
    var(--gold-soft);
}


.primary-button,
.secondary-button {
  width: 100%;

  min-height:
    49px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    10px;

  cursor:
    pointer;

  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}


.primary-button {
  margin-top: 4px;

  background:
    var(--gold);

  color:
    #0c0d10;

  font-weight:
    800;
}


.primary-button:hover {
  background:
    var(--gold-soft);
}


.primary-button:active,
.secondary-button:active {
  transform:
    translateY(1px);
}


.primary-button:disabled,
.secondary-button:disabled {
  cursor:
    wait;

  opacity:
    0.6;
}


.secondary-button {
  margin-top:
    24px;

  border:
    1px solid var(--line);

  background:
    rgba(255, 255, 255, 0.025);

  color:
    #dddeda;
}


.secondary-button:hover {
  border-color:
    rgba(203, 166, 92, 0.35);

  background:
    rgba(203, 166, 92, 0.055);
}


.closed-registration {
  color:
    var(--muted-2);

  font-size:
    11px;

  text-align:
    center;

  line-height:
    1.7;
}


.message {
  padding:
    11px 12px;

  border:
    1px solid
    rgba(227, 154, 154, 0.2);

  background:
    rgba(227, 154, 154, 0.06);

  color:
    #eeb5b5;

  font-size:
    12px;

  line-height:
    1.65;
}


.account-top {
  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    20px;
}


.account-top p {
  direction: ltr;
  text-align: right;
}


.account-badge {
  direction: ltr;

  padding:
    7px 9px;

  border:
    1px solid
    rgba(139, 198, 164, 0.24);

  background:
    rgba(139, 198, 164, 0.07);

  color:
    var(--success);

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.08em;
}


.account-summary {
  margin-top:
    26px;

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  border:
    1px solid var(--line);
}


.summary-item {
  padding:
    14px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.summary-item + .summary-item {
  border-right:
    1px solid var(--line);
}


.summary-item span {
  color:
    var(--muted-2);

  font-size:
    10px;
}


.summary-item strong {
  color:
    #d8d9d5;

  font-size:
    12px;

  font-weight:
    700;
}


.projects-header {
  margin-top:
    28px;

  display:
    flex;

  align-items:
    end;

  justify-content:
    space-between;
}


.projects-header h3 {
  margin:
    5px 0 0;

  font-size:
    18px;
}


.project-count {
  color:
    var(--muted-2);

  font-size:
    11px;
}


.projects {
  margin-top:
    12px;

  display:
    grid;

  gap:
    8px;
}


.project-card {
  min-height:
    58px;

  padding:
    12px 13px;

  border:
    1px solid var(--line);

  background:
    rgba(255, 255, 255, 0.018);

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;
}


.project-identity {
  display:
    flex;

  align-items:
    center;

  gap:
    11px;
}


.project-mark {
  width:
    32px;

  height:
    32px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--line);

  color:
    var(--gold-soft);

  font-size:
    9px;

  font-weight:
    800;

  direction:
    ltr;
}


.project-copy {
  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.project-copy strong {
  direction:
    ltr;

  font-size:
    12px;
}


.project-copy span {
  color:
    var(--muted-2);

  font-size:
    10px;
}


.project-status {
  direction:
    ltr;

  color:
    var(--muted);

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.05em;
}


.project-status.enabled {
  color:
    var(--success);
}


.project-status.disabled {
  color:
    #858991;
}


.fatal-symbol {
  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    rgba(227, 154, 154, 0.3);

  color:
    var(--danger);

  font-weight:
    800;
}


#fatal-view .secondary-button {
  max-width:
    220px;
}


.footer {
  width:
    min(1180px, calc(100% - 40px));

  margin:
    0 auto;

  padding:
    20px 0 28px;

  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  gap:
    10px;

  color:
    var(--muted-2);

  font-size:
    10px;

  direction:
    ltr;
}


.footer-divider {
  color:
    rgba(203, 166, 92, 0.48);
}


.noscript {
  position:
    fixed;

  bottom:
    20px;

  left:
    20px;

  right:
    20px;

  z-index:
    20;

  padding:
    12px;

  background:
    #2a1717;

  color:
    #f2bbbb;

  text-align:
    center;

  font-size:
    12px;
}


@media (max-width: 900px) {

  .main {
    padding-top:
      26px;

    grid-template-columns:
      1fr;

    gap:
      38px;
  }


  .intro {
    max-width:
      680px;
  }


  .intro h1 {
    max-width:
      560px;
  }


  .auth-card {
    max-width:
      600px;

    width:
      100%;

    justify-self:
      center;
  }

}


@media (max-width: 600px) {

  .topbar,
  .main,
  .footer {
    width:
      min(100% - 28px, 1180px);
  }


  .topbar {
    padding-top:
      20px;
  }


  .security-state {
    padding:
      7px 8px;

    font-size:
      10px;
  }


  .brand-copy {
    display:
      none;
  }


  .main {
    padding:
      34px 0 38px;
  }


  .intro h1 {
    font-size:
      39px;
  }


  .intro > p {
    font-size:
      14px;
  }


  .trust-row {
    grid-template-columns:
      1fr;
  }


  .trust-item + .trust-item {
    border-top:
      1px solid var(--line);
  }


  .auth-card {
    min-height:
      0;

    padding:
      26px 20px;
  }


  .view {
    min-height:
      420px;
  }


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


  .summary-item + .summary-item {
    border-right:
      0;

    border-top:
      1px solid var(--line);
  }


  .footer {
    flex-wrap:
      wrap;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }

}
