/* =========================================================
   NOUS PERSONAL
   IDENTITY
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


:root {
  --identity-bg: #020409;
  --identity-text: #f7f9ff;

  --identity-soft:
    rgba(239, 243, 255, 0.72);

  --identity-muted:
    rgba(239, 243, 255, 0.42);

  --identity-faint:
    rgba(239, 243, 255, 0.22);

  --identity-border:
    rgba(255, 255, 255, 0.08);

  --identity-blue: #77a8ff;
  --identity-purple: #a38aff;
  --identity-green: #7ce0b9;
  --identity-red: #ff7f8f;
}


html {
  min-height: 100%;
  background: var(--identity-bg);
  color-scheme: dark;
}


body {
  min-height: 100vh;
  margin: 0;

  background: var(--identity-bg);
  color: var(--identity-text);

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

  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input {
  font: inherit;
}


button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline:
    1px solid
    rgba(119, 168, 255, 0.78);

  outline-offset: 4px;
}


/* =========================================================
   PAGE
========================================================= */

.identity-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;

  isolation: isolate;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(71, 111, 230, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 80%,
      rgba(162, 106, 222, 0.08),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #03050a,
      #010207
    );
}


/* =========================================================
   BACKGROUND
========================================================= */

.identity-stars {
  position: fixed;
  inset: 0;
  z-index: -10;

  opacity: 0.52;
  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.65) 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle,
      rgba(119, 168, 255, 0.55) 1px,
      transparent 1.5px
    );

  background-size:
    145px 145px,
    210px 210px;

  background-position:
    0 0,
    70px 80px;

  animation:
    identityStars
    60s
    linear
    infinite;
}


.identity-nebula {
  position: fixed;
  z-index: -8;

  border-radius: 50%;
  filter: blur(76px);

  pointer-events: none;
}


.identity-nebula-one {
  top: 5%;
  left: 14%;

  width: 480px;
  height: 480px;

  background:
    radial-gradient(
      circle,
      rgba(70, 116, 250, 0.11),
      transparent 72%
    );
}


.identity-nebula-two {
  right: -220px;
  bottom: -240px;

  width: 700px;
  height: 700px;

  background:
    radial-gradient(
      circle,
      rgba(158, 96, 225, 0.10),
      transparent 72%
    );
}


/* =========================================================
   HEADER
========================================================= */

.identity-header {
  position: fixed;
  top: 0;
  left: 50%;

  z-index: 100;

  width:
    calc(100% - 52px);

  height: 82px;

  display: grid;
  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  transform:
    translateX(-50%);

  border-bottom:
    1px solid
    var(--identity-border);

  background:
    rgba(2, 4, 9, 0.67);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);
}


.identity-back {
  justify-self: start;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  color:
    var(--identity-muted);

  font-size:
    0.68rem;

  transition:
    color 180ms ease,
    transform 180ms ease;
}


.identity-back span:first-child {
  color:
    var(--identity-blue);

  font-size:
    0.95rem;
}


.identity-back:hover {
  color: #ffffff;

  transform:
    translateX(-3px);
}


.identity-brand {
  justify-self: center;

  display: flex;
  align-items: center;

  gap: 12px;
}


.identity-brand img {
  width: 34px;
  height: 34px;

  object-fit: contain;

  animation:
    identityLogoSpin
    15s
    linear
    infinite;
}


.identity-brand div {
  display: grid;
  gap: 3px;
}


.identity-brand strong {
  color:
    var(--identity-text);

  font-size:
    0.75rem;

  font-weight:
    760;

  letter-spacing:
    0.18em;
}


.identity-brand span {
  color:
    var(--identity-faint);

  font-size:
    0.48rem;

  font-weight:
    700;

  letter-spacing:
    0.18em;
}


.identity-header-context {
  justify-self: end;

  color:
    var(--identity-faint);

  font-size:
    0.53rem;

  font-weight:
    760;

  letter-spacing:
    0.2em;
}


/* =========================================================
   CONTAINER
========================================================= */

.identity-container {
  width:
    min(
      calc(100% - 64px),
      1240px
    );

  margin:
    0 auto;

  padding:
    150px 0 58px;
}


/* =========================================================
   HERO
========================================================= */

.identity-hero {
  padding-bottom:
    54px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}


.identity-eyebrow {
  margin:
    0 0 20px;

  color:
    var(--identity-blue);

  font-size:
    0.59rem;

  font-weight:
    800;

  letter-spacing:
    0.28em;
}


.identity-hero h1 {
  max-width:
    900px;

  margin: 0;

  color:
    var(--identity-text);

  font-size:
    clamp(
      4rem,
      7vw,
      7.2rem
    );

  font-weight:
    470;

  letter-spacing:
    -0.075em;

  line-height:
    0.9;
}


.identity-hero h1 span {
  display: block;

  margin-top:
    8px;

  color:
    rgba(234, 238, 250, 0.42);
}


.identity-intro {
  max-width:
    650px;

  margin:
    28px 0 0;

  color:
    var(--identity-muted);

  font-size:
    0.79rem;

  line-height:
    1.75;
}


/* =========================================================
   EDITOR
========================================================= */

.identity-editor {
  margin-top:
    46px;

  padding:
    32px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    28px;

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

  box-shadow:
    0 24px 80px
    rgba(0, 0, 0, 0.22);
}


.identity-editor-heading {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  padding-bottom:
    26px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.06);
}


.identity-editor-heading span:first-child {
  color:
    var(--identity-blue);

  font-size:
    0.53rem;

  font-weight:
    800;

  letter-spacing:
    0.21em;
}


.identity-editor-heading h2 {
  margin:
    10px 0 0;

  color:
    var(--identity-text);

  font-size:
    clamp(
      1.6rem,
      3vw,
      2.8rem
    );

  font-weight:
    480;

  letter-spacing:
    -0.05em;
}


.identity-save-status {
  min-height:
    1.2em;

  color:
    var(--identity-muted);

  font-size:
    0.64rem;

  text-align:
    right;
}


.identity-save-status.is-success {
  color:
    var(--identity-green);
}


.identity-save-status.is-error {
  color:
    var(--identity-red);
}


/* =========================================================
   FORM
========================================================= */

.identity-form {
  display: grid;

  gap: 28px;

  padding-top:
    28px;
}


.identity-field {
  display: grid;
  gap: 11px;
}


.identity-field-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;
}


.identity-field-heading label {
  color:
    rgba(255, 255, 255, 0.78);

  font-size:
    0.72rem;

  font-weight:
    620;
}


.identity-field-heading span {
  color:
    var(--identity-faint);

  font-size:
    0.57rem;
}


.identity-field input {
  width: 100%;

  min-height:
    56px;

  padding:
    0 17px;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    16px;

  outline: none;

  background:
    rgba(3, 6, 12, 0.72);

  color:
    var(--identity-text);

  font-size:
    0.81rem;

  transition:
    border-color 180ms ease,
    background 180ms ease;
}


.identity-field input:focus {
  border-color:
    rgba(119, 168, 255, 0.36);

  background:
    rgba(4, 8, 15, 0.9);
}


.identity-field input::placeholder {
  color:
    rgba(239, 243, 255, 0.23);
}


.identity-field-readonly input {
  color:
    rgba(239, 243, 255, 0.46);

  cursor:
    default;
}


.identity-field-note {
  margin: 0;

  color:
    var(--identity-faint);

  font-size:
    0.61rem;

  line-height:
    1.6;
}


/* =========================================================
   USERNAME
========================================================= */

.identity-username-shell {
  min-height:
    56px;

  display: grid;

  grid-template-columns:
    auto 1fr;

  align-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    16px;

  background:
    rgba(3, 6, 12, 0.72);

  transition:
    border-color 180ms ease,
    background 180ms ease;
}


.identity-username-shell:focus-within {
  border-color:
    rgba(119, 168, 255, 0.36);

  background:
    rgba(4, 8, 15, 0.9);
}


.identity-at {
  padding-left:
    17px;

  color:
    var(--identity-blue);

  font-size:
    0.85rem;
}


.identity-username-shell input {
  min-height:
    54px;

  border: 0;

  background: transparent;

  padding-left:
    7px;
}


.username-status {
  min-height:
    1.1em;

  margin: 0;

  font-size:
    0.64rem;
}


.username-status.is-checking {
  color:
    var(--identity-muted);
}


.username-status.is-available {
  color:
    var(--identity-green);
}


.username-status.is-taken,
.username-status.is-error {
  color:
    var(--identity-red);
}


/* =========================================================
   ACTIONS
========================================================= */

.identity-form-actions {
  display: flex;

  justify-content: flex-end;

  padding-top:
    6px;
}


.identity-save-button {
  min-width:
    180px;

  min-height:
    49px;

  display: inline-flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    0 17px;

  border:
    1px solid
    rgba(119, 168, 255, 0.25);

  border-radius:
    16px;

  background:
    rgba(119, 168, 255, 0.07);

  color:
    rgba(255, 255, 255, 0.82);

  cursor: pointer;

  font-size:
    0.7rem;

  font-weight:
    620;

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


.identity-save-button:hover:not(:disabled) {
  transform:
    translateY(-2px);

  border-color:
    rgba(119, 168, 255, 0.44);

  background:
    rgba(119, 168, 255, 0.12);
}


.identity-save-button:disabled {
  opacity: 0.48;
  cursor: wait;
}


/* =========================================================
   ACCOUNT SECTION
========================================================= */

.identity-account-section {
  padding:
    68px 0;
}


.identity-account-heading > span {
  color:
    var(--identity-blue);

  font-size:
    0.53rem;

  font-weight:
    800;

  letter-spacing:
    0.21em;
}


.identity-account-heading h2 {
  margin:
    12px 0 30px;

  color:
    var(--identity-text);

  font-size:
    clamp(
      2rem,
      4vw,
      3.7rem
    );

  font-weight:
    470;

  letter-spacing:
    -0.06em;
}


.identity-account-grid {
  display: grid;

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

  gap: 14px;
}


.identity-account-card {
  position: relative;

  min-height:
    215px;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  gap: 18px;

  padding:
    22px;

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-radius:
    22px;

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

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


.identity-account-card:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(119, 168, 255, 0.23);

  background:
    rgba(119, 168, 255, 0.035);
}


.identity-account-number {
  color:
    rgba(119, 168, 255, 0.42);

  font-size:
    0.52rem;
}


.identity-account-card small {
  color:
    var(--identity-blue);

  font-size:
    0.5rem;

  font-weight:
    800;

  letter-spacing:
    0.18em;
}


.identity-account-card strong {
  display: block;

  margin-top:
    15px;

  color:
    rgba(255, 255, 255, 0.8);

  font-size:
    0.94rem;

  font-weight:
    560;
}


.identity-account-card p {
  margin:
    10px 0 0;

  color:
    var(--identity-muted);

  font-size:
    0.66rem;

  line-height:
    1.6;
}


.identity-account-arrow {
  align-self: end;

  color:
    rgba(119, 168, 255, 0.55);

  font-size:
    0.85rem;
}


/* =========================================================
   PRIVACY NOTE
========================================================= */

.identity-privacy-note {
  display: grid;

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

  align-items: center;

  gap:
    30px;

  padding:
    30px 0;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}


.identity-privacy-note > span {
  color:
    var(--identity-blue);

  font-size:
    0.5rem;

  font-weight:
    800;

  letter-spacing:
    0.18em;
}


.identity-privacy-note p {
  margin: 0;

  color:
    var(--identity-muted);

  font-size:
    0.66rem;

  line-height:
    1.65;
}


.identity-privacy-note a {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color:
    rgba(119, 168, 255, 0.7);

  font-size:
    0.64rem;
}


/* =========================================================
   FOOTER
========================================================= */

.identity-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding:
    36px 0 0;
}


.identity-footer > div {
  display: flex;

  align-items: center;

  gap: 10px;
}


.identity-footer img {
  width: 30px;
  height: 30px;

  object-fit: contain;

  animation:
    identityLogoSpin
    15s
    linear
    infinite;
}


.identity-footer > div span {
  color:
    rgba(255, 255, 255, 0.64);

  font-size:
    0.65rem;

  font-weight:
    740;

  letter-spacing:
    0.16em;
}


.identity-footer p {
  margin: 0;

  color:
    var(--identity-faint);

  font-size:
    0.56rem;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes identityLogoSpin {

  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }

}


@keyframes identityStars {

  from {
    transform:
      translate3d(0, 0, 0);
  }

  to {
    transform:
      translate3d(-145px, 84px, 0);
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (
  max-width: 900px
) {

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


  .identity-privacy-note {
    grid-template-columns:
      1fr;

    gap: 14px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
  max-width: 700px
) {

  .identity-header {
    width:
      calc(100% - 28px);

    height:
      70px;
  }


  .identity-header-context {
    display: none;
  }


  .identity-back span:last-child {
    display: none;
  }


  .identity-container {
    width:
      calc(100% - 28px);

    padding:
      112px 0 42px;
  }


  .identity-hero h1 {
    font-size:
      clamp(
        3rem,
        14vw,
        4.8rem
      );
  }


  .identity-editor {
    padding:
      22px;
  }


  .identity-editor-heading {
    flex-direction:
      column;
  }


  .identity-save-status {
    text-align: left;
  }


  .identity-field-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }


  .identity-form-actions {
    justify-content: stretch;
  }


  .identity-save-button {
    width: 100%;
  }


  .identity-footer {
    align-items: flex-start;

    flex-direction: column;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}