@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/google-sans-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.login-page {
  --lg-bg: #090d15;
  --lg-ink: #eef1f6;
  --lg-muted: #9aa3b2;
  --lg-faint: #6b7686;
  --lg-red: #f2a3a3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px;
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: 8px auto 30px;
  animation: lg-fade .8s ease backwards;
}

.login-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .07) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 30px 60px -30px rgba(0, 0, 0, .85);
  animation: lg-pop .7s var(--ease, cubic-bezier(.22, .7, .3, 1)) .1s backwards;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.login-card .eyebrow,
.login-card h1,
.login-card > .muted {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--lg-ink);
}

.login-card > .muted {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lg-muted);
}

.login-card form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-muted);
}

.login-acesso .login-card .field {
  display: block;
  font-size: 0;
}

.login-card .input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--lg-ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  outline: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.login-card .input::placeholder {
  color: var(--lg-faint);
}

.login-card .input:hover {
  border-color: rgba(255, 255, 255, .24);
}

.login-page .login-card .input:focus,
.login-page .login-card .input:focus-visible {
  outline: none;
  box-shadow: none;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .45);
}

.login-page .login-card .input:-webkit-autofill,
.login-page .login-card .input:-webkit-autofill:hover,
.login-page .login-card .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lg-ink);
  -webkit-box-shadow: 0 0 0 1000px #151a24 inset;
  box-shadow: 0 0 0 1000px #151a24 inset;
  caret-color: var(--lg-ink);
  transition: background-color 9999s ease-out;
}

.login-card .btn.login-button {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0b1020;
  background: #eef1f6;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.login-card .btn.login-button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.login-card .btn.login-button:active {
  background: #dfe4ec;
  transform: translateY(0);
}

.login-card .btn.login-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px;
}

.login-card .btn.login-button:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
}

.login-error {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lg-red);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(242, 163, 163, .35);
  border-left: 1px solid rgba(242, 163, 163, .35);
  border-radius: 14px;
  animation: lg-rise .3s ease backwards;
}

@keyframes lg-fade {
  from { opacity: 0; }
}

@keyframes lg-pop {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
}

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .login-page { gap: 32px; padding: 24px 16px; }
  .login-card { padding: 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-logo,
  .login-card,
  .login-error { animation: none; }
}
