/* Qyx.ai sign-in page */
.qyx-login,
.qyx-login *,
.qyx-login *::before,
.qyx-login *::after {
  box-sizing: border-box;
}

.qyx-login {
  --qyx-bg: #f3f3f1;
  --qyx-surface: #fff;
  --qyx-ink: #12131c;
  --qyx-muted: #4b5063;
  --qyx-subtle: #737889;
  --qyx-placeholder: #9296a6;
  --qyx-line: #dcdde3;
  --qyx-line-soft: #e8e8ec;
  --qyx-accent: #6047f7;
  --qyx-accent-hover: #5238ea;
  --qyx-ok: #129144;
  --qyx-ok-soft: #e8f6ee;
  --qyx-danger: #c8322b;
  --qyx-danger-soft: #fdf1f0;
  --qyx-cta: #84f09a;
  --qyx-cta-hover: #6fe688;
  --qyx-cta-ink: #0f2a17;
  --qyx-brand: linear-gradient(90deg, #f0abfc 0%, #a855f7 30%, #6d4dff 50%, #60a5fa 72%, #a7f3d0 100%);
  --qyx-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --qyx-radius: 0.625rem;
  --qyx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: var(--qyx-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--qyx-ink);
  background: var(--qyx-bg);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qyx-login :where(h1, p, ul) {
  margin: 0;
  padding: 0;
}

.qyx-login :where(ul) {
  list-style: none;
}

.qyx-login :where(svg) {
  display: block;
  flex-shrink: 0;
}

.qyx-login [hidden] {
  display: none !important;
}

.qyx-login :where(a) {
  color: var(--qyx-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
}

.qyx-login :where(a):hover {
  color: var(--qyx-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qyx-login :focus-visible {
  outline: 3px solid var(--qyx-accent);
  outline-offset: 3px;
}

/* Backdrop: brand glow on top */
.qyx-login__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.qyx-login__backdrop::before {
  content: "";
  position: absolute;
  top: -8.5rem;
  left: 50%;
  width: min(50rem, 130vw);
  height: 10rem;
  transform: translateX(-50%);
  background: var(--qyx-brand);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
}

/* Header */
.qyx-login__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem 1rem;
}

.qyx-login__brand {
  display: inline-flex;
}

.qyx-login__brand img {
  display: block;
  width: auto;
  height: 1.75rem;
}

.qyx-login__switch {
  display: none;
  font-size: 0.875rem;
  color: var(--qyx-muted);
}

/* Main */
.qyx-login__main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem 2rem;
}

.qyx-login__card {
  position: relative;
  width: 100%;
  max-width: 26.5rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background:
    linear-gradient(var(--qyx-surface), var(--qyx-surface)) padding-box,
    linear-gradient(135deg, rgb(168 85 247 / 0.45), rgb(109 77 255 / 0.25) 35%, rgb(18 19 28 / 0.07) 60%, rgb(96 165 250 / 0.35)) border-box;
  box-shadow: 0 1px 2px rgb(18 19 28 / 0.04), 0 24px 48px -28px rgb(52 34 140 / 0.28);
}

.qyx-login__title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.qyx-login__lead {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--qyx-muted);
}

.qyx-login__notice {
  margin-top: 1.25rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: #0d5f2c;
  background: var(--qyx-ok-soft);
  border: 1px solid #bfe5cc;
  border-radius: var(--qyx-radius);
}

/* Google */
.qyx-login__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
  color: var(--qyx-ink);
  background: var(--qyx-surface);
  border: 1px solid var(--qyx-line);
  border-radius: var(--qyx-radius);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.qyx-login__google:hover {
  color: var(--qyx-ink);
  text-decoration: none;
  background: #f8f8fa;
  border-color: #c9cad3;
}

.qyx-login__google svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qyx-login__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--qyx-subtle);
}

.qyx-login__or::before,
.qyx-login__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--qyx-line-soft);
}

/* Form */
.qyx-login__form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.qyx-login__alert {
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: #8a1f1a;
  background: var(--qyx-danger-soft);
  border: 1px solid #f5cdca;
  border-radius: var(--qyx-radius);
  animation: qyx-login-reveal 0.25s var(--qyx-ease);
}

.qyx-login__field {
  display: grid;
  gap: 0.375rem;
}

.qyx-login__field label,
.qyx-login__label-row {
  font-size: 0.875rem;
  font-weight: 600;
}

.qyx-login__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.qyx-login__label-row a {
  font-size: 0.8125rem;
}

.qyx-login__field input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--qyx-ink);
  background: var(--qyx-surface);
  border: 1px solid var(--qyx-line);
  border-radius: var(--qyx-radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.qyx-login__field input::placeholder {
  color: var(--qyx-placeholder);
}

.qyx-login__field input:hover {
  border-color: #c9cad3;
}

.qyx-login__field input:focus {
  outline: none;
  border-color: var(--qyx-accent);
  box-shadow: 0 0 0 3px rgb(96 71 247 / 0.16);
}

.qyx-login__field input[aria-invalid="true"] {
  border-color: var(--qyx-danger);
}

.qyx-login__field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgb(200 50 43 / 0.14);
}

.qyx-login__password {
  position: relative;
  display: block;
}

.qyx-login__password input {
  padding-right: 3rem;
}

.qyx-login__toggle {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--qyx-subtle);
  background: none;
  border: 0;
  border-radius: 0.5rem;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.qyx-login__toggle:hover {
  color: var(--qyx-ink);
  background: #f2f2f5;
}

.qyx-login__toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.qyx-login__eye-off,
.qyx-login__toggle[aria-pressed="true"] .qyx-login__eye {
  display: none;
}

.qyx-login__toggle[aria-pressed="true"] .qyx-login__eye-off {
  display: block;
}

.qyx-login__error {
  font-size: 0.8125rem;
  color: var(--qyx-danger);
}

.qyx-login__caps {
  font-size: 0.8125rem;
  color: #8a5a00;
}

/* Remember me */
.qyx-login__remember {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--qyx-muted);
}

.qyx-login__remember input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--qyx-ok);
  cursor: pointer;
}

.qyx-login__remember label {
  cursor: pointer;
}

/* Submit */
.qyx-login__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
  padding: 0 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--qyx-cta-ink);
  background: var(--qyx-cta);
  border: 0;
  border-radius: var(--qyx-radius);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 10px 22px -14px rgb(22 120 52 / 0.55);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.qyx-login__submit:hover {
  background: var(--qyx-cta-hover);
}

.qyx-login__submit:active {
  transform: translateY(1px);
}

.qyx-login__submit:disabled {
  cursor: progress;
}

.qyx-login__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  animation: qyx-login-spin 0.8s linear infinite;
}

.qyx-login__submit[aria-busy="true"] .qyx-login__spinner {
  display: block;
}

.qyx-login__submit[aria-busy="true"] .qyx-login__submit-label {
  opacity: 0.75;
}

.qyx-login__foot {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--qyx-muted);
  text-align: center;
}

/* Trust row */
.qyx-login__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--qyx-subtle);
}

.qyx-login__trust li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.qyx-login__trust svg {
  width: 1rem;
  height: 1rem;
}

/* Footer */
.qyx-login__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1rem 1.5rem;
  font-size: 0.8125rem;
}

.qyx-login__footer a {
  font-weight: 500;
  color: var(--qyx-subtle);
}

.qyx-login__footer a:hover {
  color: var(--qyx-ink);
}

/* Forgot password */
.qyx-login__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--qyx-muted);
}

.qyx-login__back:hover {
  color: var(--qyx-ink);
}

.qyx-login__back svg {
  width: 1rem;
  height: 1rem;
}

.qyx-login__sent {
  text-align: center;
}

.qyx-login__sent:focus {
  outline: none;
}

.qyx-login__badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  color: var(--qyx-cta-ink);
  background: var(--qyx-cta);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgb(132 240 154 / 0.25);
}

.qyx-login__badge svg {
  width: 1.625rem;
  height: 1.625rem;
}

.qyx-login__sent-email {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--qyx-ink);
  overflow-wrap: anywhere;
}

.qyx-login__tips {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--qyx-muted);
  text-align: left;
  background: #f8f8fa;
  border: 1px solid var(--qyx-line-soft);
  border-radius: var(--qyx-radius);
}

.qyx-login__tips li {
  position: relative;
  padding-left: 1rem;
}

.qyx-login__tips li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--qyx-accent);
  border-radius: 50%;
}

.qyx-login__submit--link,
.qyx-login__submit--link:hover {
  color: var(--qyx-cta-ink);
  text-decoration: none;
}

.qyx-login__linkbtn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--qyx-accent);
  background: none;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
}

.qyx-login__linkbtn:hover:not(:disabled) {
  color: var(--qyx-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qyx-login__linkbtn:disabled {
  color: var(--qyx-subtle);
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.qyx-login__live {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--qyx-ok);
}

.qyx-login__live:empty {
  display: none;
}

.qyx-login__help {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--qyx-subtle);
}

/* Set new password */
.qyx-login__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.qyx-login__account {
  font-weight: 600;
  color: var(--qyx-ink);
  overflow-wrap: anywhere;
}

.qyx-login__rules {
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--qyx-subtle);
}

.qyx-login__rules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.qyx-login__rules svg {
  width: 1rem;
  height: 1rem;
  padding: 0.1875rem;
  color: transparent;
  background: var(--qyx-line-soft);
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.qyx-login__rules li.is-met {
  color: var(--qyx-ok);
}

.qyx-login__rules li.is-met svg {
  color: #fff;
  background: var(--qyx-ok);
}

@media (min-width: 40em) {
  .qyx-login__header {
    padding: 1.5rem 2rem;
  }

  .qyx-login__brand img {
    height: 1.875rem;
  }

  .qyx-login__switch {
    display: block;
  }

  .qyx-login__main {
    padding: 1rem 2rem 3rem;
  }

  .qyx-login__card {
    padding: 2.25rem 2.25rem 2rem;
  }

  .qyx-login__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 64em) {
  .qyx-login__backdrop::before {
    top: -9rem;
    height: 11rem;
  }

  .qyx-login__main {
    padding-bottom: 5vh;
  }
}

@keyframes qyx-login-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qyx-login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qyx-login *,
  .qyx-login *::before,
  .qyx-login *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
