eq-auth {
  --eq-auth-background: #f6f7f8;
  --eq-auth-surface: #ffffff;
  --eq-auth-foreground: #182027;
  --eq-auth-muted: #66727c;
  --eq-auth-border: #e1e5e8;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: 1.5rem;
  box-sizing: border-box;
  background: var(--eq-auth-background);
  color: var(--eq-auth-foreground);
  font: inherit;
}

eq-auth *, eq-auth *::before, eq-auth *::after { box-sizing: border-box; }
eq-auth .eq-auth__panel {
  display: grid;
  align-content: start;
  width: min(100%, 28rem);
  min-height: min(44rem, calc(100dvh - 3rem));
  padding: clamp(2rem, 7dvh, 4rem) clamp(1.25rem, 5vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--eq-auth-surface);
}
eq-auth .eq-auth__header {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 3rem;
}
eq-auth .eq-auth__brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .22em;
}
eq-auth .eq-auth__back {
  position: absolute;
  left: 0;
  border: 0;
  padding: .4rem .7rem;
  background: transparent;
  color: var(--eq-auth-muted);
  font-size: 2rem;
  cursor: pointer;
}
eq-auth .eq-auth__form {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  min-height: 20rem;
  margin-top: 2.5rem;
}
eq-auth .eq-auth__title {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}
eq-auth .eq-auth__fields { display: grid; gap: 1rem; }
eq-auth .eq-auth__field { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
eq-auth .eq-auth__field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.4rem;
  padding: .85rem 1rem;
  border: 1px solid var(--eq-auth-border);
  border-radius: .625rem;
  background: #fafbfb;
  color: var(--eq-auth-foreground);
  font: inherit;
}
eq-auth .eq-auth__field input:focus-visible {
  outline: 2px solid var(--eq-auth-foreground);
  outline-offset: 1px;
}
eq-auth .eq-auth__password {
  display: block;
  position: relative;
}
eq-auth .eq-auth__password input { padding-right: 3.6rem; }
eq-auth .eq-auth__eye-toggle {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: .35rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--eq-auth-muted);
  cursor: pointer;
}
eq-auth .eq-auth__eye-toggle:hover,
eq-auth .eq-auth__eye-toggle:focus-visible {
  background: rgb(24 32 39 / 7%);
  outline: none;
}
eq-auth .eq-auth__eye-toggle svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}
eq-auth .eq-auth__eye-toggle[data-visible="true"] .eq-auth__eye-slash {
  display: none;
}
eq-auth .eq-auth__feedback { margin: 0; font-size: .9rem; text-align: center; }
eq-auth .eq-auth__feedback[data-kind="error"] { color: #a12d2d; }
eq-auth .eq-auth__feedback[data-kind="success"] { color: #206043; }
eq-auth .eq-auth__feedback[hidden] { display: none !important; }
eq-auth .eq-auth__submit {
  min-height: 3.4rem;
  width: 100%;
  padding: .8rem 1rem;
  border: 0;
  border-radius: .625rem;
  background: var(--eq-auth-foreground);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
eq-auth .eq-auth__submit:disabled { opacity: .6; cursor: wait; }
eq-auth .eq-auth__links { display: grid; justify-items: center; gap: .35rem; }
eq-auth .eq-auth__links button {
  border: 0;
  padding: .45rem;
  background: transparent;
  color: var(--eq-auth-muted);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
@media (max-width: 40rem) {
  eq-auth { padding: 0; background: var(--eq-auth-surface); }
  eq-auth .eq-auth__panel { min-height: 100dvh; border-radius: 0; }
}
