:root {
  --green: #4fe35f;
  --green-2: #2bcf78;
  --bg: #081015;
  --panel: rgba(11, 19, 24, .82);
  --panel-border: rgba(93, 225, 127, .44);
  --text: #f5f7f8;
  --muted: #a7b0b5;
  --input: rgba(12, 19, 23, .88);
  --input-border: rgba(255,255,255,.24);
  --danger: #ff7272;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(2,9,13,.86), rgba(3,10,14,.58) 48%, rgba(4,9,12,.78)),
    url('/images/fundo-central.png') center center / cover fixed no-repeat;
  overflow-x: hidden;
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 226, 101, .16), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(24, 226, 101, .08), transparent 26%),
    linear-gradient(to bottom, rgba(0,0,0,.03), rgba(0,0,0,.3));
}

.login-layout {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
}

.brand-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(42px, 7vw, 120px) 48px;
}

.brand-content { max-width: 620px; }
.brand-lockup { display: flex; align-items: center; gap: 22px; }
.brand-logo { width: 190px; height: auto; object-fit: contain; border-radius: 10px; }
.brand-lockup h1 { margin: 0; font-size: clamp(44px, 4.4vw, 72px); line-height: .95; letter-spacing: -2px; }
.regional { margin: 11px 0 0; color: #d3dadd; font-size: clamp(18px, 1.5vw, 26px); font-weight: 600; }
.brand-line, .card-line { width: 34px; height: 3px; background: var(--green); border-radius: 10px; margin: 28px 0; }
.headline { max-width: 540px; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.25; color: #e3e8ea; margin: 0 0 46px; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; max-width: 640px; }
.benefit { display: flex; flex-direction: column; gap: 12px; color: #dde3e5; font-size: 15px; line-height: 1.35; }
.benefit-icon { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.48); border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.brand-footer, .regional-footer { margin-top: auto; letter-spacing: 5px; font-size: 11px; color: rgba(255,255,255,.72); }

.login-panel {
  min-height: 100vh;
  padding: 48px clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: min(100%, 520px);
  padding: clamp(30px, 4vw, 52px);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(9,17,22,.94), rgba(13,24,28,.80));
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}

.card-brand { display: flex; align-items: center; gap: 15px; }
.card-logo { width: 132px; height: auto; border-radius: 8px; }
.card-brand div { display: flex; flex-direction: column; gap: 3px; }
.card-brand strong { font-size: 24px; letter-spacing: .2px; }
.card-brand span { color: #abb4b8; font-size: 14px; font-weight: 600; }
.login-card h2 { margin: 0 0 8px; font-size: 36px; }
.subtitle { margin: 0 0 30px; color: var(--muted); line-height: 1.5; }
.login-card label { display: block; color: #d9dfe2; font-size: 14px; font-weight: 600; margin: 0 0 8px; }

.field-wrap { position: relative; margin-bottom: 18px; }
.field-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #cfd6d9; font-size: 13px; }
.field-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 48px;
  color: white;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-wrap input::placeholder { color: #758087; }
.field-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,227,95,.10); background: rgba(10,19,22,.97); }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #cfd6d9; cursor: pointer; font-size: 18px; padding: 8px; }
.form-links { display: flex; justify-content: flex-end; margin: -4px 0 22px; }
.form-links a { color: var(--green); font-size: 14px; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }

.submit-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  color: #07100b;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(49, 213, 95, .20); filter: brightness(1.04); }

.alert { margin: 0 0 20px; padding: 13px 15px; border-radius: 10px; background: rgba(255, 85, 85, .12); border: 1px solid rgba(255, 104, 104, .32); color: #ffd0d0; font-size: 14px; }
.separator { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 13px; margin: 32px 0 20px; color: #8c979c; }
.separator span { height: 1px; background: rgba(255,255,255,.22); }
.separator em { font-style: normal; font-size: 13px; }
.support-text { margin: 0; text-align: center; color: #8f9a9f; font-size: 13px; line-height: 1.5; }
.regional-footer { margin-top: 34px; }

.recover-shell { min-height: 100vh; position: relative; z-index: 1; display: grid; place-items: center; padding: 28px; }
.recover-card { max-width: 520px; }
.recover-info { padding: 18px; margin: 8px 0 26px; border-radius: 12px; background: rgba(79,227,95,.07); border: 1px solid rgba(79,227,95,.2); color: #cbd4d7; }
.recover-info strong { color: white; }
.recover-info p { margin: 8px 0 0; line-height: 1.55; }
.link-button { margin-top: 8px; }

@media (max-width: 1050px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: auto; padding: 42px 30px 18px; justify-content: flex-start; }
  .brand-content { max-width: none; }
  .brand-lockup { justify-content: center; text-align: left; }
  .brand-logo { width: 140px; }
  .brand-lockup h1 { font-size: 44px; }
  .regional { font-size: 18px; }
  .brand-line, .headline, .benefits, .brand-footer { display: none; }
  .login-panel { min-height: auto; padding: 18px 24px 42px; }
}

@media (max-width: 600px) {
  .login-page { background-position: 40% center; }
  .brand-panel { padding: 28px 20px 10px; }
  .brand-lockup { gap: 12px; }
  .brand-logo { width: 105px; }
  .brand-lockup h1 { font-size: 32px; letter-spacing: -1px; }
  .regional { font-size: 14px; margin-top: 5px; }
  .login-panel { padding: 10px 14px 28px; }
  .login-card { border-radius: 16px; padding: 26px 20px; }
  .card-logo { width: 102px; }
  .card-brand strong { font-size: 20px; }
  .login-card h2 { font-size: 30px; }
  .regional-footer { display: none; }
}
