/* Mementiq modern authentication --------------------------------------- */
.auth-layout-v2 {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(62, 132, 255, 0.08),
      transparent 30rem
    ),
    radial-gradient(
      circle at 88% 90%,
      rgba(74, 214, 180, 0.045),
      transparent 26rem
    ),
    #070a10;
}

.auth-layout-v2 .vault-navbar,
.auth-layout-v2 .vault-footer {
  display: none;
}

.auth-layout-v2 main {
  min-height: 100vh;
}

.auth-shell-v2 {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: #edf3fa;
  font-family: "Space Mono", monospace;
}

.auth-frame-v2 {
  display: grid;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: #0b1018;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.auth-story-v2 {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 40px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(
      160deg,
      rgba(13, 27, 48, 0.96),
      rgba(8, 13, 22, 0.98) 70%
    );
}

.auth-story-v2::before {
  position: absolute;
  top: -160px;
  right: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(94, 164, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(94, 164, 255, 0.025),
    0 0 0 140px rgba(94, 164, 255, 0.015);
  pointer-events: none;
}

.auth-story-v2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 48%;
  content: "";
  background:
    radial-gradient(
      circle at 78% 82%,
      rgba(79, 207, 173, 0.07),
      transparent 48%
    );
  pointer-events: none;
}

.auth-brand-v2 {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #f4f7fb;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-brand-v2 img {
  width: 36px;
  height: 36px;
}

.auth-story-copy-v2 {
  position: relative;
  z-index: 2;
  max-width: 510px;
  margin-top: auto;
  padding-top: 70px;
}

.auth-kicker-v2,
.auth-form-heading-v2 > span {
  display: block;
  color: #8edcff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-story-copy-v2 h1 {
  max-width: 530px;
  margin: 12px 0 0;
  color: #f5f8fb;
  font-size: clamp(2.35rem, 4.4vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-story-copy-v2 p {
  max-width: 500px;
  margin: 18px 0 0;
  color: #8996a8;
  font-size: 0.72rem;
  line-height: 1.75;
}

.auth-memory-stack-v2,
.auth-feature-list-v2 {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}

.auth-memory-stack-v2 {
  display: grid;
  max-width: 480px;
  gap: 8px;
}

.auth-memory-stack-v2 article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.auth-memory-stack-v2 article:nth-child(2) {
  margin-left: 18px;
}

.auth-memory-stack-v2 article:nth-child(3) {
  margin-left: 36px;
}

.auth-memory-icon-v2 {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(94, 164, 255, 0.12);
  border-radius: 9px;
  color: #9bdcff;
  background: rgba(63, 132, 220, 0.07);
}

.auth-memory-stack-v2 small,
.auth-memory-stack-v2 strong {
  display: block;
}

.auth-memory-stack-v2 small {
  color: #657489;
  font-size: 0.43rem;
}

.auth-memory-stack-v2 strong {
  margin-top: 2px;
  color: #cbd5e2;
  font-size: 0.56rem;
  font-weight: 600;
}

.auth-memory-stack-v2 article > i {
  color: #5f7188;
  font-size: 0.56rem;
}

.auth-feature-list-v2 {
  display: grid;
  gap: 14px;
  max-width: 510px;
}

.auth-feature-list-v2 > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.auth-feature-list-v2 > div > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(93, 159, 244, 0.1);
  border-radius: 9px;
  color: #8ccff3;
  background: rgba(64, 123, 190, 0.06);
  font-size: 0.68rem;
}

.auth-feature-list-v2 span {
  color: #7d899b;
  font-size: 0.53rem;
  line-height: 1.55;
}

.auth-feature-list-v2 strong {
  display: block;
  margin-bottom: 2px;
  color: #d8e0e9;
  font-size: 0.56rem;
  font-weight: 600;
}

.auth-story-footnote-v2 {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  padding-top: 28px;
  color: #586579;
  font-size: 0.48rem;
}

.auth-form-panel-v2 {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 54px 50px;
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(80, 137, 227, 0.035),
      transparent 18rem
    ),
    #0b1018;
}

.auth-form-wrap-v2 {
  width: min(410px, 100%);
}

.auth-form-wrap-v2--register {
  width: min(430px, 100%);
}

.auth-form-heading-v2 {
  margin-bottom: 26px;
}

.auth-form-heading-v2 h2 {
  margin: 8px 0 0;
  color: #f5f7fa;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.auth-form-heading-v2 p {
  margin: 10px 0 0;
  color: #7f8b9d;
  font-size: 0.62rem;
  line-height: 1.65;
}

.auth-alert-v2 {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 18px;
  padding: 10px 11px;
  border: 1px solid rgba(225, 110, 120, 0.18);
  border-radius: 9px;
  color: #eeb1b8;
  background: rgba(148, 50, 62, 0.08);
  font-size: 0.54rem;
  line-height: 1.5;
}

.auth-alert-v2 > i {
  margin-top: 1px;
  color: #e48f99;
}

.auth-form-v2 {
  display: grid;
  gap: 16px;
}

.auth-field-v2 {
  min-width: 0;
}

.auth-field-v2 > label {
  display: block;
  margin-bottom: 7px;
  color: #cbd4df;
  font-size: 0.55rem;
  font-weight: 600;
}

.auth-input-v2 {
  position: relative;
  display: grid;
  min-height: 48px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(4, 9, 15, 0.72);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.auth-input-v2:focus-within {
  border-color: rgba(90, 140, 255, 0.5);
  background: rgba(7, 13, 21, 0.92);
  box-shadow: 0 0 0 3px rgba(90, 140, 255, 0.07);
}

.auth-input-v2 > i {
  color: #65758a;
  font-size: 0.65rem;
  pointer-events: none;
}

.auth-input-v2 input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #edf3f8;
  background: transparent;
  font-family: "Space Mono", monospace;
  font-size: 0.61rem;
}

.auth-input-v2 input::placeholder {
  color: #4f5c6f;
}

.auth-input-v2.password-input-group {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 34px;
}

.auth-input-v2.password-input-group .password-input {
  padding-right: 0;
}

.auth-input-v2 .password-toggle-button {
  position: static;
  width: 32px;
  height: 32px;
  transform: none;
  justify-self: end;
}

.auth-field-hint-v2 {
  display: block;
  margin-top: 6px;
  color: #5f6d80;
  font-size: 0.47rem;
}

.auth-submit-v2 {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(104, 164, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(53, 126, 241, 0.96),
      rgba(83, 113, 239, 0.96)
    );
  box-shadow: 0 12px 26px rgba(48, 104, 213, 0.16);
  font-family: "Space Mono", monospace;
  font-size: 0.59rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.auth-submit-v2:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(48, 104, 213, 0.22);
}

.auth-submit-v2:focus-visible {
  outline: 2px solid #8edcff;
  outline-offset: 3px;
}

.auth-submit-v2 > i {
  font-size: 0.68rem;
}

.auth-switch-v2 {
  margin: 22px 0 0;
  color: #687589;
  font-size: 0.52rem;
  text-align: center;
}

.auth-switch-v2 a {
  color: #91d7f9;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch-v2 a:hover {
  color: #b9e8ff;
}

.auth-privacy-v2 {
  max-width: 360px;
  margin: 14px auto 0;
  color: #4f5c6e;
  font-size: 0.44rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-shell-v2 {
    padding: 16px;
  }

  .auth-frame-v2 {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-story-v2 {
    min-height: 310px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  }

  .auth-story-copy-v2 {
    margin-top: 46px;
    padding-top: 0;
  }

  .auth-story-copy-v2 h1 {
    max-width: 620px;
    font-size: clamp(2.05rem, 7vw, 3.4rem);
  }

  .auth-memory-stack-v2,
  .auth-feature-list-v2 {
    display: none;
  }

  .auth-story-footnote-v2 {
    display: none;
  }

  .auth-form-panel-v2 {
    padding: 42px 34px 46px;
  }
}

@media (max-width: 560px) {
  .auth-shell-v2 {
    display: block;
    padding: 0;
    background: #090d14;
  }

  .auth-frame-v2 {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-story-v2 {
    min-height: 230px;
    padding: 22px 20px 24px;
  }

  .auth-brand-v2 img {
    width: 32px;
    height: 32px;
  }

  .auth-story-copy-v2 {
    margin-top: 34px;
  }

  .auth-story-copy-v2 h1 {
    font-size: 2rem;
    line-height: 1.02;
  }

  .auth-story-copy-v2 p {
    margin-top: 12px;
    font-size: 0.59rem;
    line-height: 1.6;
  }

  .auth-form-panel-v2 {
    display: block;
    padding: 34px 20px 42px;
  }

  .auth-form-wrap-v2,
  .auth-form-wrap-v2--register {
    width: 100%;
  }

  .auth-form-heading-v2 h2 {
    font-size: 1.55rem;
  }

  .auth-input-v2,
  .auth-submit-v2 {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input-v2,
  .auth-submit-v2 {
    transition: none;
  }
}


.auth-back-v2 {
  position: absolute;
  top: 26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #77869a;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.49rem;
  text-decoration: none;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.auth-back-v2:hover {
  border-color: rgba(121, 195, 235, 0.18);
  color: #a9def8;
  background: rgba(94, 164, 255, 0.045);
}

.auth-back-v2:focus-visible {
  outline: 2px solid #8edcff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .auth-back-v2 {
    top: 18px;
    left: 20px;
  }

  .auth-form-wrap-v2 {
    padding-top: 18px;
  }
}

@media (max-width: 560px) {
  .auth-back-v2 {
    position: static;
    margin-bottom: 24px;
  }

  .auth-form-wrap-v2 {
    padding-top: 0;
  }
}


/* Password recovery ---------------------------------------------------- */
.auth-label-row-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.auth-label-row-v2 label {
  margin: 0;
  color: #cbd4df;
  font-size: 0.55rem;
  font-weight: 600;
}

.auth-label-row-v2 a {
  color: #7189a7;
  font-size: 0.46rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.auth-label-row-v2 a:hover,
.auth-label-row-v2 a:focus-visible {
  color: #9bdefd;
}

.auth-result-v2 {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.auth-result-icon-v2 {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(116, 186, 255, 0.18);
  border-radius: 13px;
  color: #9bdcff;
  background:
    linear-gradient(
      145deg,
      rgba(78, 149, 226, 0.12),
      rgba(51, 92, 146, 0.05)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 30px rgba(0, 0, 0, 0.12);
  font-size: 1rem;
}

.auth-result-icon-v2--success {
  border-color: rgba(83, 218, 174, 0.18);
  color: #7de4bf;
  background:
    linear-gradient(
      145deg,
      rgba(57, 175, 137, 0.12),
      rgba(37, 102, 82, 0.05)
    );
}

.auth-result-icon-v2--warning {
  border-color: rgba(255, 189, 98, 0.16);
  color: #e6bd7c;
  background:
    linear-gradient(
      145deg,
      rgba(190, 132, 63, 0.11),
      rgba(93, 64, 34, 0.04)
    );
}

.auth-result-v2 h2 {
  margin: 9px 0 0;
  color: #f5f7fa;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.auth-result-v2 > p {
  margin: 14px 0 0;
  color: #7f8b9d;
  font-size: 0.61rem;
  line-height: 1.7;
}

.auth-result-detail-v2 {
  color: #586678 !important;
  font-size: 0.49rem !important;
}

.auth-submit-link-v2 {
  width: 100%;
  margin-top: 24px;
  text-decoration: none;
}

.auth-submit-link-v2:hover,
.auth-submit-link-v2:focus-visible {
  color: #ffffff;
}

.auth-secondary-link-v2 {
  align-self: center;
  margin-top: 17px;
  color: #71849d;
  font-size: 0.48rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-secondary-link-v2:hover,
.auth-secondary-link-v2:focus-visible {
  color: #a3ddf8;
}

@media (max-width: 560px) {
  .auth-label-row-v2 a {
    font-size: 0.44rem;
  }

  .auth-result-v2 {
    padding-top: 4px;
  }
}
