/* Login em duas metades: marca à esquerda (navy), formulário à direita (papel). Abaixo de 900px só o formulário. */
:root {
  --navy-deep: #091528; --navy: #11294b; --navy-lift: #1b3f70; --sky: #4d9bf0;
  --paper: #f7f8fb; --card: #ffffff; --ink: #16203a; --ink-2: #55617e; --ink-3: #8d97ad;
  --line: #e2e6ee; --line-strong: #ccd3e0; --danger: #96393c;
  --field-h: 3.25rem; --radius: .875rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
       background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }

.lgn { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.brand { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-width: 0;
         padding: clamp(1.75rem, 4.4vh, 4.25rem) clamp(2.25rem, 4.2vw, 5.25rem); background: var(--navy-deep); color: #eaf1fb; }
.veil { position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(118deg, #091528f7, #0d1e38ed 34%, #11294be0 62%, #173763db),
                    linear-gradient(200deg, #0d1e38, #112a4d 55%, #0a1729); }
.glow { position: absolute; z-index: 2; top: -18%; right: -22%; width: 70%; aspect-ratio: 1; border-radius: 50%;
        background: radial-gradient(circle, #4d9bf047, #4d9bf000 68%); pointer-events: none; }
.ghost { position: absolute; z-index: 2; right: -10%; bottom: -18%; width: 46%; opacity: .035; color: #f0f6ff; pointer-events: none; }
.ghost svg { width: 100%; height: auto; }
.inner { position: relative; z-index: 3; width: 100%; min-width: 0; max-width: 34rem; }
.mark { margin-bottom: clamp(1.25rem, 3.4vh, 2.85rem); }
.kicker { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 clamp(.85rem, 2.2vh, 1.9rem); font-size: .75rem;
          font-weight: 500; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: #e2edfcb8; }
.title { margin: 0; font-size: clamp(1.9rem, 2.62vw, 3.1rem); font-weight: 700; line-height: 1.13; letter-spacing: -.022em; color: #fff; }
.accent { color: var(--sky); }
.lead { margin: clamp(1rem, 2.4vh, 1.9rem) 0 0; max-width: 30rem; font-size: clamp(.9rem, .95vw, 1.05rem); line-height: 1.68; color: #dee8f7c7; }
.perks { display: flex; flex-direction: column; gap: clamp(.7rem, 1.7vh, 1.35rem); margin: clamp(1.25rem, 3.1vh, 2.6rem) 0 0; padding: 0; list-style: none; }
.perk { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.perk-icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border-radius: .85rem;
             border: 1px solid rgba(146, 186, 240, .22); background: #78aaeb21; color: #dbe9fb; }
.perk-icon svg { width: 1.25rem; height: 1.25rem; }
.perk-text { display: flex; flex-direction: column; min-width: 0; }
.perk-text strong { font-size: .9375rem; font-weight: 600; color: #fff; }
.perk-text span { font-size: .8125rem; line-height: 1.5; color: #d6e2f4b3; }
.rule { width: 2.5rem; height: 2px; margin: clamp(1.25rem, 3.1vh, 2.8rem) 0 clamp(.7rem, 1.6vh, 1.4rem); border-radius: 2px; background: #7fbcff8c; }
.sign { margin: 0; font-size: .875rem; color: #d6e2f4bd; }

.pane { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0;
        padding: clamp(1.25rem, 2vw, 2.25rem) clamp(1.25rem, 2.6vw, 3.25rem) clamp(2rem, 2.6vw, 3.25rem); background: var(--paper); }
.help-row { display: flex; justify-content: flex-end; }
.help { display: inline-flex; align-items: center; padding: .5rem .25rem; font-size: .8125rem; color: var(--ink-3); border-radius: .5rem; transition: color .16s ease; }
.help:hover { color: var(--navy-lift); }
form { align-self: center; justify-self: center; width: 100%; max-width: 27rem; padding: clamp(.5rem, 1.4vw, 1.25rem) 0; }
.form-mark { display: flex; justify-content: center; margin-bottom: 1.25rem; color: var(--navy); }
h1 { margin: 0; font-size: clamp(1.45rem, 1.65vw, 1.85rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-align: center; }
.sub { margin: .4rem 0 1.85rem; font-size: .9375rem; text-align: center; color: var(--ink-2); }
.alert { display: flex; gap: .55rem; margin-bottom: 1.25rem; padding: .75rem .9rem; font-size: .8125rem; line-height: 1.5;
         border-radius: .75rem; border: 1px solid rgba(150, 57, 60, .22); background: #f9ebeb; color: var(--danger); }
.field { margin-bottom: 1.05rem; }
label { display: block; margin-bottom: .45rem; font-size: .8125rem; font-weight: 600; }
.control { position: relative; display: block; }
.lead-icon { position: absolute; top: 50%; left: .95rem; transform: translateY(-50%); display: grid; place-items: center; color: var(--ink-3); pointer-events: none; }
.control:focus-within .lead-icon { color: var(--sky); }
input { width: 100%; height: var(--field-h); padding: 0 1rem 0 2.85rem; font: inherit; font-size: .9375rem; color: var(--ink);
        background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px #16203a0a;
        -webkit-appearance: none; appearance: none; transition: border-color .16s ease, box-shadow .16s ease; }
input.trail { padding-right: 3.3rem; }
input::placeholder { color: var(--ink-3); opacity: .85; }
input:hover:not(:focus) { border-color: var(--line-strong); }
input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px #4d9bf02e; }
.reveal { position: absolute; top: 50%; right: .3rem; transform: translateY(-50%); display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
          padding: 0; color: var(--ink-3); background: none; border: 0; border-radius: .625rem; cursor: pointer; transition: color .16s ease, background-color .16s ease; }
.reveal:hover { color: var(--navy-lift); background: #16203a0d; }
.reveal[aria-pressed="true"] { color: var(--sky); }
.forgot-row { display: flex; justify-content: flex-end; margin: .1rem 0 1.2rem; }
.forgot { display: inline-flex; align-items: center; padding: .3rem .15rem; font-size: .8125rem; color: var(--sky); border-radius: .5rem; }
.forgot:hover { color: var(--navy-lift); text-decoration: underline; }
.submit { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 3.375rem; padding: 0 1.25rem;
          font: inherit; font-size: .9375rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, #17325c, #0f2440);
          border: 0; border-radius: var(--radius); box-shadow: 0 8px 20px -10px #0f2440a6; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.submit:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 12px 26px -12px #0f2440b3; }
.submit:active:not(:disabled) { transform: translateY(1px); }
.submit:disabled { opacity: .62; cursor: not-allowed; box-shadow: none; }
.lgn a:focus-visible, .lgn button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

@media (max-width: 900px) {
  .lgn { grid-template-columns: minmax(0, 1fr); }
  .brand { display: none; }
  .pane { padding: 1rem 1rem 2.25rem; }
  form { max-width: 26rem; }
  .help, .forgot { min-height: 2.75rem; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .lgn *, .lgn *::before, .lgn *::after { transition: none !important; } }
.mark-svg { color: #1b3f70; }
.form-mark svg { width: 72px; height: 72px; }
.mark svg { width: 64px; height: 64px; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.alert[hidden] { display: none; }
