:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #182237;
  --muted: #69758a;
  --purple: #7256b5;
  --purple-dark: #51358f;
  --purple-pale: #ece6f8;
  --line: #dce1ea;
  --danger: #c13535;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  color: var(--ink);
  background: #2c1c59;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  position: relative;
  width: min(100%, 410px);
  padding: 34px 42px 24px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 26px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 28px 70px rgb(42 25 72 / 28%);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.brand img {
  display: block;
  width: 184px;
  height: 80px;
  object-fit: contain;
}

.mascot {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border: 2px solid #a78bd4;
  border-radius: 50%;
  background-color: #d8c8f5;
  background-image: url("https://cdn.jsdelivr.net/gh/boreal-sistemas/mobile-boreal-rh@main/assets/login/polvo_usuario_sprite_24_frames.png?v=20260524");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 3072px 128px;
  box-shadow: inset 0 0 24px rgb(86 56 145 / 12%), 0 10px 24px rgb(80 54 130 / 15%);
}

.login-copy {
  margin-bottom: 22px;
  text-align: center;
}

.login-copy .eyebrow {
  margin: 0 0 5px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.7px;
}

.login-copy p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-form label:not(.remember) {
  display: block;
  margin: 15px 0 7px;
  font-size: 12px;
  font-weight: 750;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  height: 47px;
  padding: 0 48px 0 42px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.field input:focus {
  border-color: #9477cc;
  background: white;
  box-shadow: 0 0 0 4px rgb(114 86 181 / 12%);
}

.field-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  color: #8c7aa9;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
}

.field-icon.lock {
  width: 13px;
  height: 11px;
  border: 2px solid #8c7aa9;
  border-radius: 3px;
}

.field-icon.lock::before {
  position: absolute;
  left: 1px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid #8c7aa9;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--purple-pale);
}

.password-toggle span {
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
  border: 2px solid #806aa9;
  border-radius: 50% 50%;
}

.password-toggle span::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: 2px auto;
  content: "";
  border-radius: 50%;
  background: #806aa9;
}

.password-toggle[aria-pressed="true"] span {
  opacity: .48;
  transform: rotate(-12deg);
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.submit-button {
  width: 100%;
  height: 47px;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #8065ba, #5c3c9c);
  box-shadow: 0 10px 22px rgb(91 59 155 / 24%);
  transition: transform .16s, box-shadow .16s;
}

.submit-button:hover {
  box-shadow: 0 13px 26px rgb(91 59 155 / 32%);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.form-message {
  color: var(--danger);
  font-size: 12px;
  text-align: center;
}

.form-message:empty {
  display: none;
}

.form-message ul {
  margin: 0 0 8px;
  padding: 9px 12px;
  list-style: none;
  border-radius: 9px;
  background: #fff1f1;
}

.field-error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: var(--danger);
  font-size: 11px;
}

.field-error:empty {
  min-height: 0;
}

.login-card footer {
  margin-top: 22px;
  color: #9aa2b1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 470px) {
  .login-shell {
    padding: 0;
  }

  .login-card {
    min-height: 100vh;
    padding: 27px 26px 20px;
    border: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
