:root {
  --navy: #1b2a3d;
  --navy-2: #24364d;
  --gold: #b8893a;
  --cream: #f4efe6;
  --ink: #1a1c1e;
  --muted: #5c6168;
  --line: #d8d0c2;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
}
body {
  min-height: 100vh;
  background: #0c141d;
  color: var(--ink);
}

.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 8% 0%, rgba(184, 137, 58, .18), transparent 52%),
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(27, 42, 61, .7), transparent 48%),
    linear-gradient(160deg, #0c141d 0%, #162233 42%, #0c141d 100%);
  animation: login-bg-shift 18s ease-in-out infinite alternate;
}
.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
  pointer-events: none;
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: .5;
}
.login-orb--a {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 12%;
  background: rgba(184, 137, 58, .32);
  animation: login-orb-float 12s ease-in-out infinite;
}
.login-orb--b {
  width: 340px;
  height: 340px;
  right: -80px;
  bottom: -40px;
  background: rgba(36, 54, 77, .7);
  animation: login-orb-float 16s ease-in-out infinite reverse;
}
.login-orb--c {
  width: 160px;
  height: 160px;
  left: 42%;
  top: 8%;
  background: rgba(244, 239, 230, .12);
  animation: login-orb-float 10s ease-in-out infinite 1s;
}

@keyframes login-bg-shift {
  from { transform: scale(1); }
  to { transform: scale(1.04) translate(-1%, .6%); }
}
@keyframes login-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

.login-shell {
  position: relative;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .1);
  animation: login-shell-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes login-shell-in {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.login-hero {
  position: relative;
  padding: 44px 40px 28px;
  color: #f4efe6;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: linear-gradient(180deg, #22344c 0%, var(--navy) 100%);
  border-bottom: 0;
  border-right: 3px solid var(--gold);
}
.login-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d4c7ad;
  animation: login-fade-up .7s ease .1s both;
}
.login-logo {
  width: 92px;
  height: auto;
  display: block;
  margin-bottom: 18px;
  animation: login-fade-up .7s ease .18s both;
}
.login-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  animation: login-fade-up .7s ease .26s both;
}
.login-subtitle {
  margin: 12px 0 0;
  color: #d8d0c2;
  line-height: 1.5;
  max-width: 34ch;
  animation: login-fade-up .7s ease .34s both;
}
.login-site {
  margin: 18px 0 0;
  animation: login-fade-up .7s ease .38s both;
}
.site-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: #f4efe6;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(184, 137, 58, .35);
}
.site-link:hover {
  background: rgba(184, 137, 58, .18);
  border-color: var(--gold);
}
.site-link-label { font-size: 13px; font-weight: 700; }
.site-link-url { font-size: 11.5px; color: #e6c88a; }
.login-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: login-fade-up .7s ease .42s both;
}
.login-points li {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(184, 137, 58, .28);
  border-radius: 999px;
}
.login-hero-foot {
  margin-top: auto;
  padding-top: 28px;
  animation: login-fade-up .7s ease .5s both;
}
.login-strata {
  display: block;
  width: min(240px, 100%);
  height: auto;
}

@keyframes login-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.login-card {
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  padding: 44px 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.login-card-head h2 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -.03em;
}
.login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.login-off {
  margin: 16px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e6ded0;
  color: var(--navy);
  font-size: 13px;
  border-left: 3px solid var(--gold);
}
.login-form .field { margin-bottom: 16px; }
.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fffdf8;
}
.login-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 137, 58, .18);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-wrap input::-ms-reveal,
.password-wrap input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover { color: var(--navy); background: rgba(27, 42, 61, .06); }
.password-toggle .olho-risco[hidden] { display: none; }
.caps-aviso {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff4d6;
  color: #7a4a00;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #e6c88a;
}
.remember-access {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.remember-access input { accent-color: var(--navy); }
.login-go {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #2a3d55 0%, var(--navy) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(27, 42, 61, .28);
}
.login-go:hover { background: var(--navy-2); }
.login-msg {
  margin: 0 0 14px;
  color: #b42318;
  font-weight: 600;
  font-size: 13px;
}
.login-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 11px;
  color: #8a8478;
  letter-spacing: .04em;
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero {
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--gold);
    padding: 28px 24px 20px;
  }
  .login-card { padding: 28px 22px; }
}
