* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 20px;
}
.login-card {
  width: 380px;
  max-width: 100%;
  padding: 32px 30px 25px;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  background: #fff;
  box-shadow:
    0 18px 48px -18px rgba(38, 51, 70, 0.21),
    0 3px 10px rgba(38, 51, 70, 0.025);
}
.card-header {
  text-align: center;
  margin-bottom: 24px;
}
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #1b2a3b;
  color: #fff;
  font-size: 20px;
  font-weight: 750;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.brand-mark span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77bc58;
  position: absolute;
  right: 8px;
  bottom: 9px;
}
.brand-caption {
  font-size: 11px;
  line-height: 1.5;
  color: #929aa3;
  margin: 0 0 5px;
  letter-spacing: 0.05px;
}
h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.3px;
  line-height: 1.5;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  margin-bottom: 12px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: #f0f2f4;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.field:focus-within {
  background: #f4f7fb;
  border-color: #c5d7e8;
  box-shadow: 0 0 0 3px rgba(175, 204, 230, 0.16);
}
.field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #929da8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #293744;
  background: transparent;
  font-size: 14px;
}
.field input::placeholder {
  color: #8e98a2;
}
.field input:autofill {
  border-radius: 8px;
}
.password-field {
  padding-right: 8px;
  margin-bottom: 0;
}
.password-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.password-toggle svg {
  width: 17px;
  height: 17px;
}
.password-toggle:hover svg {
  stroke: #536576;
}
.eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
.form-message {
  min-height: 18px;
  margin: 9px 4px 8px;
  color: #c34444;
  font-size: 12px;
  line-height: 18px;
}
.login-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--pa-primary);
  box-shadow: 0 5px 14px rgba(40, 110, 193, 0.16);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.login-submit:hover {
  background: var(--pa-primary-hover);
  box-shadow: 0 6px 17px rgba(40, 110, 193, 0.22);
}
.login-submit:active {
  transform: translateY(1px);
}
.login-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}
.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.login-submit[aria-busy="true"] .spinner {
  display: block;
}
.card-footer {
  text-align: center;
  margin-top: 14px;
}
.help-toggle {
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #87929b;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}
.help-toggle:hover {
  color: var(--pa-primary);
}
.help-text {
  margin: 8px 0 0;
  font-size: 12px;
  color: #75808a;
  line-height: 1.8;
}
button:focus-visible {
  outline: 2px solid #8cabc7;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 420px) {
  .login-card {
    padding: 30px 25px 23px;
  }
  .field input {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.login-subtitle {
  margin-top: 8px;
  color: var(--pa-muted);
  font-size: 12px;
}
.login-footer {
  text-align: center;
  color: var(--pa-muted);
  font-size: 11px;
  margin: 22px 0 0;
}
.login-shell {
  max-width: none;
  margin: 0;
}
