.hub-auth-page {
  --auth-ink: #2c2229;
  --auth-muted: #665761;
  --auth-accent: #882c51;
  --auth-line: #9a8693;
  display: grid;
  min-block-size: 100vh;
  min-block-size: 100svh;
  place-items: center;
  margin: 0;
  padding: clamp(12px, 3vw, 36px);
  background: #f7f6f5;
  color: var(--auth-ink);
  font: 500 16px/1.5 "Tajawal", Tahoma, Arial, sans-serif;
}

.hub-auth-page,
.hub-auth-page *,
.hub-auth-page *::before,
.hub-auth-page *::after {
  box-sizing: border-box;
}

.hub-auth-main {
  inline-size: min(100%, 440px);
  min-inline-size: 0;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid #e6dfe3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 5px #33263006;
}

.hub-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 24px;
  padding-block-end: 20px;
  border-block-end: 1px solid #eae4e8;
}

.hub-auth-brand img {
  flex: none;
  display: block;
}

.hub-auth-wordmark {
  color: var(--auth-ink);
  font: 800 24px/1 system-ui, sans-serif;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.hub-auth-wordmark span {
  margin-inline-start: .2em;
  color: var(--auth-accent);
  font-size: .68em;
  letter-spacing: -.045em;
}

.hub-auth-heading {
  margin-block-end: 22px;
}

.hub-auth-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 35px);
  font-weight: 800;
  line-height: 1.2;
}

.hub-auth-heading p {
  margin: 5px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
}

.hub-auth-form {
  display: grid;
  gap: 14px;
}

.hub-auth-field {
  display: grid;
  gap: 6px;
}

.hub-auth-field label {
  font-size: 15px;
  font-weight: 800;
}

.hub-auth-input {
  position: relative;
}

.hub-auth-page svg {
  display: block;
  inline-size: 20px;
  block-size: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-auth-input > svg {
  position: absolute;
  z-index: 1;
  inset-inline-start: 15px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: #806676;
  pointer-events: none;
}

.hub-auth-input input {
  display: block;
  inline-size: 100%;
  min-block-size: 50px;
  padding: 10px 44px 10px 15px;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.hub-auth-input.has-toggle input {
  padding-left: 52px;
}

.hub-auth-input input:hover {
  border-color: #80556d;
}

.hub-auth-input input:focus {
  border-color: var(--auth-accent);
  outline: 2px solid #c77495;
  outline-offset: 2px;
}

.hub-auth-input .input-validation-error {
  border-color: #ae3a56;
}

.hub-auth-toggle {
  position: absolute;
  display: grid;
  place-items: center;
  inset-inline-end: 5px;
  inset-block-start: 50%;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
}

.hub-auth-toggle:hover {
  background: #f9eef2;
  color: var(--auth-accent);
}

.hub-auth-toggle[hidden],
.hub-auth-toggle .eye-closed,
.hub-auth-toggle.is-visible .eye-open,
.hub-auth-form .field-validation-valid,
.hub-auth-form .validation-summary-valid {
  display: none;
}

.hub-auth-toggle.is-visible .eye-closed {
  display: block;
}

.hub-auth-remember {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-block-size: 35px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hub-auth-remember input {
  flex: none;
  inline-size: 17px;
  block-size: 17px;
  margin: 0;
  accent-color: var(--auth-accent);
}

.hub-auth-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 50px;
  padding: 12px 48px;
  border: 0;
  border-radius: 9px;
  background: var(--auth-accent);
  color: #fff;
  font: 800 16px/1.35 "Tajawal", Tahoma, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}

.hub-auth-button:hover {
  background: #641836;
}

.hub-auth-button > svg {
  position: absolute;
  inset-inline-end: 17px;
}

.hub-auth-button:focus-visible,
.hub-auth-toggle:focus-visible,
.hub-auth-remember input:focus-visible {
  outline: 2px solid #a12c58;
  outline-offset: 3px;
}

.hub-auth-error,
.hub-auth-field .field-validation-error {
  color: #902441;
  font-size: 14px;
  font-weight: 700;
}

.hub-auth-error {
  padding: 9px 12px;
  border: 1px solid #e9c3ce;
  border-radius: 10px;
  background: #fff0f3;
}

.hub-auth-error ul {
  margin: 0;
  padding-inline-start: 21px;
}

.hub-auth-denied-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  margin-block-end: 12px;
  border-radius: 9px;
  background: #f6edf1;
  color: var(--auth-accent);
}

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