/* Evoluty Manager: Sálvia & Íris */
:root {
  --canvas: #f4f6f1;
  --panel: #fefffb;
  --txt: #253429;
  --txm: #505f54;
  --bdr: #d7dfd2;
  --field-bdr: #8b978c;
  --roxo: #534071;
  --roxo-esc: #44335e;
  --iris-soft: #eae2f3;
  --rd: #9a344f;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--txt); font: 400 15px/1.5 "Inter", system-ui, sans-serif; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--roxo); outline-offset: 3px; }
.login-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.login-hero {
  display: grid;
  align-items: end;
  min-width: 0;
  background-color: #2c3030;
  background-image:
    linear-gradient(0deg, rgba(21,20,26,.97) 0%, rgba(24,22,29,.84) 22%, rgba(25,23,29,.64) 46%, rgba(25,23,29,.12) 78%, transparent 100%),
    url("../assets/login-sistema-por-tras-v1.webp");
  background-position: center, center 46%;
  background-size: cover;
  color: #fefffb;
}
.login-hero-copy { padding: clamp(28px, 5.2vw, 92px); }
.login-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #f1e6fe;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.login-kicker::before { content: ""; width: 24px; height: 1px; background: #c8afe2; }
.login-hero h1 {
  margin: 0;
  max-width: 15ch;
  font: 800 clamp(2.125rem, 4.25vw, 4.5rem)/1.06 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.login-hero h1 + p { margin: 16px 0 0; max-width: 39ch; color: #f1eff1; font-size: clamp(.875rem, 1.3vw, 1.06rem); }
.wrap {
  min-width: 0;
  background: var(--panel);
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4.7vw, 72px);
  gap: 28px;
  border-left: 1px solid var(--bdr);
}
.logo-area, .screen, .rodape { width: 100%; max-width: 410px; }
.logo-area img { display: block; width: 154px; max-width: 100%; height: auto; }
.screen { display: none; min-width: 0; }
.screen.on { display: block; }
.screen h2 { margin: 0; font: 800 clamp(1.55rem, 2.7vw, 2.25rem)/1.16 var(--display); letter-spacing: -.036em; }
.desc { margin: 8px 0 23px; color: var(--txm); font-size: .875rem; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 650; }
.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--txm); font-size: 17px; pointer-events: none; z-index: 1;
}
.input-wrap input {
  width: 100%; min-height: 46px; padding: 10px 53px 10px 40px;
  background: var(--canvas); border: 1px solid var(--field-bdr); border-radius: 8px;
  color: var(--txt); font-size: 1rem;
}
.input-wrap input::placeholder { color: var(--txm); opacity: 1; }
.input-wrap input:focus { border-color: var(--roxo); outline: 2px solid var(--roxo); outline-offset: 1px; }
.eye-btn {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  color: var(--txm); border: 0; border-radius: 8px; background: transparent;
}
.eye-btn i { font-size: 18px; line-height: 1; }
.eye-btn:hover { color: var(--roxo); background: var(--iris-soft); }
.eye-btn:focus-visible { outline-offset: -3px; }
.btn-entrar {
  width: 100%; min-height: 46px; margin-top: 6px; padding: 11px 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; background: var(--roxo); color: #fff;
  font-size: .875rem; font-weight: 700; transition: background .15s;
}
.btn-entrar:hover { background: var(--roxo-esc); }
.btn-entrar:disabled { opacity: .65; cursor: wait; }
.link-btn { padding: 4px 0; border: 0; background: transparent; color: var(--roxo); font-size: .8125rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--roxo-esc); }
.forgot-row { margin: -3px 0 12px; text-align: right; }
.error-msg {
  display: flex; align-items: center; gap: 8px; margin-bottom: 15px; padding: 10px 12px;
  background: #f8e9ee; border: 1px solid #e1bac6; border-radius: 8px; color: var(--rd); font-size: .8125rem;
}
.error-msg.hidden { display: none; }
.back-link { margin-top: 16px; text-align: center; }
.info-box { margin-bottom: 16px; padding: 14px; border: 1px solid var(--bdr); border-radius: 8px; background: var(--canvas); color: var(--txm); font-size: .875rem; }
.info-box strong { color: var(--roxo); }
.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--bdr); color: var(--txm); font-size: .75rem; }
.rodape a { color: var(--roxo); text-underline-offset: 3px; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 690px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-hero { min-height: 235px; min-height: clamp(225px, 35svh, 300px); }
  .login-hero-copy { padding: 25px clamp(20px, 6vw, 40px); }
  .login-hero h1 { font-size: clamp(1.85rem, 5.8vw, 2.7rem); }
  .login-kicker { margin-bottom: 8px; }
  .login-hero h1 + p { margin-top: 8px; }
  .wrap { gap: 20px; padding: 23px clamp(20px, 6vw, 40px); border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .btn-entrar { transition: none; }
}
