:root {
  color-scheme: light;
  --ink: #202838;
  --muted: #758095;
  --blue: #355bda;
  --border: #e3e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 0%, #e8edfd 0, transparent 48%),
    radial-gradient(ellipse at 90% 95%, #e9eef9 0, transparent 44%), #f7f8fb;
}
.login-shell {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 30px;
}
.login-brand img {
  box-shadow: 0 5px 12px #355bda18;
  border-radius: 13px;
}
.brand-desk {
  font-weight: 400;
  margin-left: 5px;
  color: #59667d;
}
.login-card {
  padding: 32px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  box-shadow:
    0 16px 55px #2237620b,
    0 1px 4px #22376208;
  outline: 1px solid #e3e8f078;
}
.login-field {
  margin-bottom: 19px;
}
.login-field label:not(.sr-only) {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #455166;
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fafbfd;
  color: var(--ink);
  padding: 0 42px;
  font-size: 14px;
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.input-wrap input::placeholder {
  color: #a2acbb;
}
.input-wrap input:focus {
  border-color: #6683e5;
  background: white;
  box-shadow: 0 0 0 3px #355bda12;
}
.input-wrap input[aria-invalid="true"] {
  border-color: #d97b7b;
}
.field-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #8c98ac;
  pointer-events: none;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8190a6;
  cursor: pointer;
}
.password-toggle svg {
  width: 19px;
  height: 19px;
}
.password-toggle:hover {
  background: #edf1f9;
  color: var(--blue);
}
button:focus-visible {
  outline: 3px solid #355bda66;
  outline-offset: 3px;
}
.login-submit {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 49px;
  width: 100%;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: 0 4px 10px #355bda1a;
  transition:
    background 0.15s,
    transform 0.15s;
}
.login-submit:hover {
  background: #294cc7;
}
.login-submit:active {
  transform: translateY(1px);
}
.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff55;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.login-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #efd8d8;
  border-radius: 8px;
  background: #fff5f5;
  color: #a74b4b;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.login-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.login-error p {
  margin: 0;
}
.field-error {
  font-size: 12px;
  color: #a74b4b;
  margin-top: 7px;
}
.field-error ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.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;
}
[hidden] {
  display: none !important;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-height: 800px) {
  .login-shell {
    padding-top: 10vh;
  }
}
@media (max-width: 480px) {
  .login-shell {
    padding: 44px 20px 25px;
  }
  .login-card {
    padding: 26px 24px;
    border-radius: 17px;
  }
  .login-brand {
    margin-bottom: 27px;
    font-size: 23px;
  }
  .input-wrap input {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .submit-spinner {
    animation: none;
  }
}
