/* Shared login foundations from the Atharise public website. */
:root {
  --red: #9a1b23;
  --red-dark: #3d0710;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #fff; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--red-dark);
  background: #fff;
  font-family: "Titillium Web", Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-notice {
  margin: 20px 0 0;
  color: var(--red-dark);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.login-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  isolation: isolate;
  background: #fff;
}

.login-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.login-pattern-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(960px, 112vmax, 1900px);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: login-pattern-drift 100s linear infinite alternate;
  will-change: transform;
}

@keyframes login-pattern-drift {
  from { transform: translate(-52%, -47%) rotate(-8deg); }
  to { transform: translate(-48%, -53%) rotate(4deg); }
}

.login-layout {
  display: grid;
  flex: 1;
  padding: 48px 24px;
  place-items: center;
}

.login-content {
  width: min(100%, 388px);
}

.login-logo {
  display: block;
  width: 136px;
  margin: 0 auto 64px;
  border-radius: 4px;
}

.login-logo img {
  width: 100%;
  height: auto;
}

.login-intro {
  text-align: center;
}

.login-intro h1 {
  margin: 0;
  color: var(--red-dark);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.login-intro p {
  margin: 12px 0 0;
  color: #675a5c;
  font-size: 16px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  margin-top: 32px;
  gap: 24px;
}

.login-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid #ded6d7;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--red-dark);
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 180ms ease;
}

.login-form input::placeholder {
  color: #817579;
  opacity: 1;
}

.login-form input:hover {
  border-color: #bda6ab;
}

.login-form input[aria-invalid="true"] {
  border-color: var(--red);
}

.login-continue {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.login-continue:hover {
  background: #7f141c;
}

.login-page :is(a, button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.login-form input:focus,
.login-password-field:focus-within input {
  border-color: var(--red);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--red);
}

.login-password-field {
  position: relative;
}

.login-password-field input {
  padding-right: 60px;
}

.login-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: #817579;
  background: transparent;
  cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: var(--red);
  background: #faf0f1;
}

.login-page .login-password-toggle:focus-visible {
  outline: none;
}

.login-password-toggle[hidden],
.login-password-toggle [hidden] {
  display: none;
}

.login-status {
  margin: 0;
  color: var(--red-dark);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.login-status[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .login-layout {
    padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .login-intro h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-pattern-art {
    animation: none;
    will-change: auto;
  }
}
