/* ===============================================================
   Login do Painel Administrativo — Dra. Waleska Paula
   Depende dos tokens definidos em ../css/styles.css
   =============================================================== */

.login-body {
  min-height: 100vh;
  background: var(--background);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.login-page::before {
  width: 380px;
  height: 380px;
  background: hsl(44.2 66.7% 52.9% / 0.22);
  top: -120px;
  right: -80px;
}
.login-page::after {
  width: 320px;
  height: 320px;
  background: hsl(145 64.3% 22% / 0.14);
  bottom: -110px;
  left: -70px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: 32px;
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.login-brand img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 71px;
  object-fit: cover;
  object-position: 0% 38%;
}

.login-head {
  text-align: center;
  margin-bottom: 26px;
}
.login-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.login-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}
.login-sub {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-top: 8px;
}

.login-form .field {
  margin-bottom: 22px;
}

.login-password {
  position: relative;
  display: flex;
  align-items: center;
}
.login-password .input {
  padding-right: 48px;
}
.login-password__toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: background 0.2s ease, color 0.2s ease;
}
.login-password__toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}
.login-password__toggle svg {
  width: 18px;
  height: 18px;
}

.login-back {
  text-align: center;
  margin-top: 22px;
  font-size: 0.86rem;
}
.login-back a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.login-back a:hover {
  color: var(--primary);
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px;
    border-radius: 26px;
  }
  .login-title {
    font-size: 1.45rem;
  }
}
