:root {
  color-scheme: dark;
  --paper: #eaf1ff;
  --accent: #9bbcf5;
  --line: rgba(198, 218, 250, 0.3);
}
@view-transition {
  navigation: auto;
}
::view-transition-group(root),
::view-transition-group(auth-card),
::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(auth-card),
::view-transition-new(auth-card) {
  animation-duration: 150ms;
  animation-timing-function: ease-out;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper);
  background: #0b1424;
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.scene {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      var(--shade-direction, 90deg),
      rgba(7, 13, 25, 0.02) 0%,
      rgba(7, 13, 25, 0.1) 42%,
      rgba(7, 13, 25, 0.62) 62%,
      rgba(7, 13, 25, 0.9) 100%
    ),
    linear-gradient(0deg, rgba(6, 11, 22, 0.42), transparent 42%),
    url("../images/login-background.webp") center/cover no-repeat;
}
.page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 5.5vh 5vw;
}
.petals {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: -8vh;
  left: var(--left);
  width: var(--size);
  aspect-ratio: 0.69;
  opacity: 0;
  filter: blur(var(--blur));
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}
.petal:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f8ff, #c6dcff 62%, #8daee8);
  box-shadow: 0 0 7px rgba(184, 211, 255, 0.42);
}
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  9% {
    opacity: var(--alpha);
  }
  52% {
    transform: translate3d(calc(var(--drift) * 0.42), 52vh, 0) rotate(250deg) scale(1);
  }
  91% {
    opacity: var(--alpha);
  }
  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(540deg) scale(1.08);
    opacity: 0;
  }
}
.register-page {
  --shade-direction: 270deg;
}
.register-page .scene {
  background-image:
    linear-gradient(
      var(--shade-direction, 270deg),
      rgba(7, 13, 25, 0.02) 0%,
      rgba(7, 13, 25, 0.1) 42%,
      rgba(7, 13, 25, 0.62) 62%,
      rgba(7, 13, 25, 0.9) 100%
    ),
    linear-gradient(0deg, rgba(6, 11, 22, 0.42), transparent 42%),
    url("../images/register-background.webp");
}
.register-page .layout {
  justify-content: flex-start;
}
.register-page .rail {
  left: 4.6vw;
  right: auto;
}
.register-page .rail:before,
.register-page .rail:after {
  left: -4px;
  right: auto;
}
.register-page .bottom-line {
  margin-left: auto;
}
.register-page .auth:before {
  left: auto;
  right: -1px;
  border-left: 0;
  border-right: 2px solid var(--accent);
}
.register-page .auth:after {
  right: auto;
  left: -1px;
  border-right: 0;
  border-left: 2px solid var(--accent);
}
.register-page .edge-top:before {
  right: auto;
  left: 0;
}
.register-page .edge-bottom:before {
  left: auto;
  right: 0;
}
.switch-account-page {
  --paper: #f0f0e5;
  --accent: #d0df91;
  --line: rgba(205, 220, 160, 0.3);
}
.switch-account-page .scene {
  background-image:
    linear-gradient(
      var(--shade-direction, 270deg),
      rgba(9, 13, 9, 0.02) 0%,
      rgba(9, 13, 9, 0.1) 42%,
      rgba(9, 13, 9, 0.62) 62%,
      rgba(9, 13, 9, 0.9) 100%
    ),
    linear-gradient(0deg, rgba(8, 12, 7, 0.42), transparent 42%),
    url("../images/account-switch-background.webp");
}
.switch-account-page .auth {
  border-color: rgba(205, 220, 160, 0.34);
  background: rgba(17, 23, 16, 0.84);
}
.switch-account-page .auth:before {
  border-color: #dce8a8;
}
.switch-account-page .auth:after {
  border-color: var(--accent);
}
.switch-account-page .eyebrow {
  color: #d0df91;
}
.switch-account-page .account-choice {
  border-color: #d0df91;
  background: linear-gradient(105deg, #465236, #657649);
}
.switch-account-page .deny {
  border-color: rgba(205, 220, 160, 0.36);
  background: rgba(63, 74, 48, 0.72);
}
.layout {
  width: min(100%, 1280px);
  margin: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.auth {
  position: relative;
  width: min(100%, 400px);
  view-transition-name: auth-card;
  padding: 31px 30px 23px;
  border: 1px solid rgba(198, 218, 250, 0.35);
  background: rgba(12, 20, 37, 0.82);
  box-shadow: 0 18px 70px rgba(2, 8, 18, 0.42);
  backdrop-filter: blur(10px);
}
.auth:before,
.auth:after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  pointer-events: none;
}
.auth:before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.auth:after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.auth-head {
  margin: 0 0 25px;
  text-align: center;
}
.consent-page {
  overflow: auto;
}
.consent-page .layout {
  padding: 20px 0;
}
.consent {
  width: min(100%, 450px);
  padding-top: 27px;
}
.consent .auth-head {
  margin-bottom: 21px;
}
.eyebrow {
  margin: 0 0 9px;
  color: #a9c8ff;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.client-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(188, 207, 241, 0.22);
  background: rgba(18, 29, 49, 0.76);
}
.client-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(139, 177, 242, 0.5);
  color: var(--accent);
  font:
    20px Georgia,
    "Times New Roman",
    serif;
}
.client-card .field-label {
  margin-bottom: 4px;
}
.client-card strong,
.scope-list strong {
  display: block;
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
}
.scope-section {
  margin-top: 21px;
}
.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(188, 207, 241, 0.2);
}
.scope-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 3px;
  border-bottom: 1px solid rgba(188, 207, 241, 0.2);
}
.scope-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.scope-list strong {
  font-size: 12px;
}
.consent-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.consent-actions form {
  display: block;
  margin: 0;
}
.consent-actions #account-options {
  display: grid;
  gap: 8px;
}
.account-choice {
  min-height: 47px;
  height: auto;
  padding: 12px 16px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}
.consent-actions .submit {
  width: 100%;
  margin-top: 0;
}
.deny {
  height: 47px;
  border: 1px solid rgba(190, 209, 242, 0.32);
  background: rgba(57, 73, 101, 0.62);
  color: var(--paper);
  font:
    600 10px/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 73%, calc(100% - 12px) 100%, 0 100%, 0 27%);
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.deny:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}
.consent .register {
  margin-top: 15px;
  padding-top: 12px;
}
.consent .register a {
  margin: 0;
}
.oauth-consent-page {
  --paper: #e8f3f6;
  --accent: #72d7cd;
  --line: rgba(135, 210, 205, 0.3);
  background: #081923;
}
.oauth-consent-page .scene {
  background-image:
    linear-gradient(
      var(--shade-direction, 90deg),
      rgba(5, 15, 24, 0.02) 0%,
      rgba(5, 15, 24, 0.12) 42%,
      rgba(5, 15, 24, 0.64) 62%,
      rgba(5, 15, 24, 0.92) 100%
    ),
    linear-gradient(0deg, rgba(5, 15, 20, 0.46), transparent 42%),
    url("../images/consent-background.webp");
}
.oauth-consent-page .auth {
  border-color: rgba(135, 210, 205, 0.36);
  background: rgba(7, 23, 33, 0.86);
}
.oauth-consent-page .eyebrow,
.oauth-consent-page .client-card .field-label,
.oauth-consent-page .scope-section > .field-label {
  color: #94e0d3;
}
.oauth-consent-page .client-card {
  border-color: rgba(135, 210, 205, 0.26);
  background: rgba(7, 39, 47, 0.78);
}
.oauth-consent-page .client-mark {
  border-color: rgba(114, 215, 205, 0.58);
}
.oauth-consent-page .scope-list {
  border-color: rgba(135, 210, 205, 0.22);
}
.oauth-consent-page .scope-list li {
  border-color: rgba(135, 210, 205, 0.22);
}
.oauth-consent-page .submit {
  border-color: #9be9dc;
  background: linear-gradient(105deg, #176570, #208d8b);
}
.oauth-consent-page .deny {
  border-color: rgba(135, 210, 205, 0.36);
  background: rgba(30, 68, 70, 0.76);
}
.oauth-consent-page .register {
  border-color: rgba(135, 210, 205, 0.22);
  color: #b6d5d7;
}
.oauth-consent-page .register a {
  color: #88e3d5;
}
.oauth-consent-page .edge {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(135, 210, 205, 0.24) 5%,
    rgba(135, 210, 205, 0.24) 95%,
    transparent
  );
}
.oauth-consent-page .rail {
  background: linear-gradient(
    transparent,
    rgba(135, 210, 205, 0.26) 12%,
    rgba(135, 210, 205, 0.26) 88%,
    transparent
  );
}
.oauth-consent-page .bottom-line {
  background: linear-gradient(rgba(135, 210, 205, 0.25), transparent);
}
.account-page {
  --paper: #f1ebf2;
  --accent: #d9b9ca;
  --line: rgba(218, 205, 222, 0.28);
  overflow: auto;
}
.account-page .scene {
  background-image:
    linear-gradient(
      var(--shade-direction, 90deg),
      rgba(7, 13, 25, 0.02) 0%,
      rgba(7, 13, 25, 0.1) 42%,
      rgba(7, 13, 25, 0.62) 62%,
      rgba(7, 13, 25, 0.9) 100%
    ),
    linear-gradient(0deg, rgba(6, 11, 22, 0.42), transparent 42%),
    url("../images/account-background.webp");
}
.account-page .auth {
  border-color: rgba(218, 205, 222, 0.34);
  background: rgba(15, 18, 31, 0.84);
}
.account-page .auth:before {
  border-color: #e8cbd4;
}
.account-page .auth:after {
  border-color: var(--accent);
}
.account-page .account-details dt {
  color: #c7b8cb;
}
.account-page .account-details {
  border-color: rgba(218, 205, 222, 0.22);
}
.account-page .account-details div {
  border-color: rgba(218, 205, 222, 0.22);
}
.account-page .account-actions .register {
  color: #dec7d4;
}
.account-page .account-actions .submit {
  border-color: #e2c5d2;
  background: linear-gradient(105deg, #51435f, #76576f);
  color: #fff5f8;
}
.account-card {
  width: min(100%, 480px);
}
.account-card .auth-head {
  margin-bottom: 20px;
}
.account-details {
  margin: 20px 0 0;
  border-top: 1px solid rgba(188, 207, 241, 0.2);
}
.account-details div {
  padding: 13px 2px;
  border-bottom: 1px solid rgba(188, 207, 241, 0.2);
}
.account-details dt {
  color: #b5c5df;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.account-details dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
}
.account-actions {
  margin-top: 20px;
}
.account-actions .register {
  display: block;
  margin: 0 0 15px;
}
.account-actions .register a {
  margin: 0;
}
.account-actions form {
  display: block;
}
.account-actions .submit {
  width: 100%;
}
h2 {
  margin: 0;
  color: var(--paper);
  font:
    30px/1.1 Georgia,
    "Times New Roman",
    serif;
  font-weight: 400;
}
form {
  display: grid;
  gap: 17px;
}
.form-message {
  margin: 0;
  color: #f1a6b7;
  font-size: 12px;
  line-height: 1.5;
}
.field-label {
  display: block;
  margin: 0 0 7px;
  color: #b5c5df;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.input-wrap {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid rgba(188, 207, 241, 0.2);
  border-bottom-color: rgba(188, 207, 241, 0.58);
  background: rgba(18, 29, 49, 0.82);
}
.input-wrap:focus-within {
  border-color: rgba(139, 177, 242, 0.88);
  background: rgba(24, 40, 67, 0.92);
}
input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf3ff;
  font:
    14px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}
input::placeholder {
  color: #a2b2cc;
  opacity: 1;
}
.toggle {
  width: 40px;
  flex: none;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #b9c8e0;
  cursor: pointer;
}
.toggle .icon {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("../icons/eye-slash.svg") center/contain no-repeat;
  mask: url("../icons/eye-slash.svg") center/contain no-repeat;
}
.toggle[aria-pressed="true"] .icon {
  -webkit-mask-image: url("../icons/eye.svg");
  mask-image: url("../icons/eye.svg");
}
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 47px;
  margin-top: 5px;
  border: 1px solid #a8c7ff;
  background: linear-gradient(105deg, #294b83, #3c68a8);
  color: #f5f8ff;
  font:
    600 10px/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 27%, 100% 100%, 12px 100%, 0 73%);
  transition:
    filter 0.2s,
    transform 0.2s;
}
.submit:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}
.submit .icon {
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("../icons/arrow-right.svg") center/contain no-repeat;
  mask: url("../icons/arrow-right.svg") center/contain no-repeat;
}
.register {
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(188, 207, 241, 0.2);
  text-align: center;
  color: #b1bfd7;
  font-size: 11px;
}
.register a {
  margin-left: 5px;
  color: #a9c8ff;
  text-decoration: none;
}
.edge {
  display: none;
  position: fixed;
  z-index: 3;
  left: 5vw;
  right: 4.6vw;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(190, 212, 250, 0.24) 5%,
    rgba(190, 212, 250, 0.24) 95%,
    transparent
  );
  pointer-events: none;
}
.edge-top {
  top: 6vh;
}
.edge-bottom {
  bottom: 6vh;
}
.edge:before {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.edge-top:before {
  right: 0;
}
.edge-bottom:before {
  left: 0;
  opacity: 0.7;
}
.rail {
  position: fixed;
  z-index: 3;
  top: 6vh;
  right: 4.6vw;
  bottom: 6vh;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(190, 212, 250, 0.26) 12%,
    rgba(190, 212, 250, 0.26) 88%,
    transparent
  );
  pointer-events: none;
}
.rail:before,
.rail:after {
  content: "";
  position: absolute;
  right: -4px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.rail:before {
  top: 0;
}
.rail:after {
  bottom: 0;
  opacity: 0.65;
}
.bottom-line {
  width: 1px;
  height: 45px;
  background: linear-gradient(rgba(190, 212, 250, 0.25), transparent);
}
.bottom-line:before {
  content: "";
  display: block;
  position: relative;
  top: -4px;
  left: -4px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.switch-account-page .edge {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(205, 220, 160, 0.24) 5%,
    rgba(205, 220, 160, 0.24) 95%,
    transparent
  );
}
.switch-account-page .rail {
  background: linear-gradient(
    transparent,
    rgba(205, 220, 160, 0.26) 12%,
    rgba(205, 220, 160, 0.26) 88%,
    transparent
  );
}
.switch-account-page .bottom-line {
  background: linear-gradient(rgba(205, 220, 160, 0.25), transparent);
}
@media (max-width: 820px) {
  body {
    overflow: auto;
  }
  .scene {
    background-position:
      center,
      center,
      20% center;
  }
  .page {
    padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  }
  .layout {
    justify-content: center;
    max-width: 430px;
    padding: 24px 0;
  }
  .register-page .layout {
    justify-content: center;
  }
  .register-page .scene {
    background-position:
      center,
      center,
      80% center;
  }
  .rail,
  .bottom-line {
    display: none;
  }
  .edge {
    display: block;
    left: 22px;
    right: 22px;
  }
  .edge-top {
    top: 14px;
  }
  .edge-bottom {
    bottom: 14px;
  }
  .auth {
    padding: 27px 25px 21px;
  }
}
@media (max-width: 480px) {
  .page {
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .edge {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
  }
  .edge-top {
    top: max(12px, env(safe-area-inset-top));
  }
  .edge-bottom {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .layout {
    padding: 18px 0;
  }
  .auth {
    padding: 24px 20px 19px;
  }
  .auth-head {
    margin-bottom: 19px;
  }
  h2 {
    font-size: 28px;
  }
  input:not([type="checkbox"]) {
    font-size: 16px;
  }
  form {
    gap: 15px;
  }
  .register {
    margin-top: 18px;
    padding-top: 12px;
  }
}
@media (max-width: 820px) and (max-height: 650px) {
  .page {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .layout {
    padding: 10px 0;
  }
  .auth {
    padding: 18px 22px 16px;
  }
  .auth-head {
    margin-bottom: 13px;
  }
  form {
    gap: 11px;
  }
  .register {
    margin-top: 13px;
    padding-top: 9px;
  }
}
@media (max-height: 680px) and (min-width: 821px) {
  .register-page {
    overflow: auto;
  }
  .register-page .layout {
    padding: 16px 0;
  }
  .register-page .auth {
    padding-top: 21px;
    padding-bottom: 18px;
  }
  .register-page .auth-head {
    margin-bottom: 15px;
  }
  .register-page form {
    gap: 11px;
  }
  .register-page .register {
    margin-top: 14px;
    padding-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .petal {
    display: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0s !important;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
