/* Telas de acesso: login, cadastro e esqueci a senha (layout _Layout_Login, 2026-11-25).
   Tudo prefixado com wl- para não conflitar com Bootstrap/SmartAdmin. */
:root {
    --wl-bordo: #9B1C2E; --wl-bordo-dk: #7E1625; --wl-vinho: #5E1120;
    --wl-grafite: #2B2D31; --wl-texto: #4A4A4A; --wl-muted: #7A7A7A; --wl-linha: #E4E0E1; --wl-fundo: #F6F5F5;
    --wl-erro: #B3261E;
}
html, body.wl-auth-body { min-height: 100%; margin: 0; background: var(--wl-fundo); }
body.wl-auth-body { font-family: "Roboto", system-ui, sans-serif; font-size: 14px; color: var(--wl-texto); }
.wl-auth, .wl-auth * { box-sizing: border-box; }
.wl-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* painel da marca (fica parado enquanto o formulário rola) */
.wl-brand { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(120% 90% at 0% 0%, #B42338 0%, var(--wl-bordo) 38%, var(--wl-vinho) 100%); }
.wl-brand .wl-watermark { position: absolute; right: -120px; bottom: -90px; width: 520px; opacity: .08; pointer-events: none; }
.wl-brand .wl-logo img { height: 40px; width: auto; }
.wl-brand-copy { position: relative; z-index: 1; max-width: 460px; }
.wl-brand-copy h1 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; color: #fff; }
.wl-brand-copy p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 28px; }
.wl-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.wl-features li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.wl-features i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(201,164,92,.55); color: #F1D9A8; font-size: 17px; flex: none; }

/* formulário */
.wl-form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 16px; }
.wl-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--wl-linha); border-radius: 16px; padding: 36px 36px 28px; box-shadow: 0 10px 30px rgba(43,45,49,.06); }
.wl-card.wl-card-wide { max-width: 560px; }
.wl-card .wl-logo-mobile { display: none; margin-bottom: 22px; }
.wl-card .wl-logo-mobile img { height: 34px; width: auto; }
.wl-card h2 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 24px; color: var(--wl-grafite); margin: 0 0 6px; }
.wl-card .wl-sub { margin: 0 0 26px; color: var(--wl-muted); font-size: 14.5px; line-height: 1.5; }
.wl-card .alert { border-radius: 10px; font-size: 13.5px; }
.wl-grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.wl-field { margin-bottom: 16px; }
.wl-field > label { display: block; font-size: 13.5px; font-weight: 500; color: var(--wl-grafite); margin-bottom: 6px; }
.wl-field > label .wl-req { color: var(--wl-bordo); }
.wl-control { position: relative; }
/* ícones alinhados pelo meio do campo (46px), mesmo quando aparece algo abaixo dele, como a barra de força da senha */
.wl-control > i.wl-lead { position: absolute; left: 14px; top: 23px; transform: translateY(-50%); color: #9A9496; font-size: 16px; pointer-events: none; }
.wl-control input { width: 100%; height: 46px; border: 1px solid #D9D4D5; border-radius: 10px; padding: 0 44px 0 42px; font: 15px "Roboto", sans-serif; color: var(--wl-grafite); background: #fff; transition: border-color .2s, box-shadow .2s; }
.wl-control input:focus { outline: none; border-color: var(--wl-bordo); box-shadow: 0 0 0 3px rgba(155,28,46,.12); }
.wl-control input.error { border-color: var(--wl-erro); }
.wl-control .wl-eye { position: absolute; right: 6px; top: 23px; transform: translateY(-50%); border: 0; background: none; color: #8A8486; font-size: 17px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; padding: 0; }
.wl-control .wl-eye:hover { background: #F3EFF0; color: var(--wl-grafite); }
.wl-control .progress { height: 16px; margin: 8px 0 0; border-radius: 8px; }
.wl-auth label.error { display: block; color: var(--wl-erro); font-size: 12.5px; font-weight: 400; margin: 6px 0 0; }
.wl-captcha { margin: 6px 0 14px; min-height: 65px; max-width: 100%; overflow: hidden; }
.wl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; font-size: 13.5px; flex-wrap: wrap; }
.wl-check { display: flex; align-items: flex-start; gap: 8px; color: var(--wl-texto); cursor: pointer; font-weight: 400; margin: 0; line-height: 1.45; }
.wl-check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--wl-bordo); }
.wl-note { font-size: 12.5px; color: var(--wl-muted); margin: 0 0 14px; }
.wl-link { color: var(--wl-bordo); font-weight: 500; }
.wl-link:hover, .wl-link:focus { color: var(--wl-bordo-dk); text-decoration: underline; }
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--wl-bordo); color: #fff; font: 600 15.5px "Montserrat", sans-serif; letter-spacing: .01em; cursor: pointer;
    box-shadow: 0 6px 16px rgba(155,28,46,.25); transition: background .2s, opacity .2s, transform .1s; }
.wl-btn:hover { background: var(--wl-bordo-dk); }
.wl-btn:active { transform: translateY(1px); }
.wl-btn-outline, a.wl-btn-outline { background: #fff; color: var(--wl-bordo); border: 1.5px solid var(--wl-bordo); box-shadow: none; text-decoration: none; }
.wl-btn-outline:hover, .wl-btn-outline:focus { background: #FBF3F4; color: var(--wl-bordo-dk); border-color: var(--wl-bordo-dk); text-decoration: none; }
.wl-btn.disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.wl-signup { margin-top: 22px; padding-top: 18px; border-top: 1px solid #EFEBEC; text-align: center; font-size: 14px; color: var(--wl-muted); }
.wl-help { margin-top: 22px; display: flex; gap: 18px; justify-content: center; font-size: 13px; }
.wl-help a { color: var(--wl-muted); display: inline-flex; gap: 6px; align-items: center; }
.wl-help a:hover { color: var(--wl-bordo); text-decoration: none; }
.wl-copy { margin-top: 10px; font-size: 12px; color: #A09A9C; text-align: center; }

@media (max-width: 900px) {
    .wl-auth { grid-template-columns: 1fr; }
    .wl-brand { display: none; }
    .wl-form-panel { justify-content: flex-start; padding-top: 32px; }
    .wl-card { padding: 28px 22px 22px; box-shadow: none; }
    .wl-card .wl-logo-mobile { display: block; }
}
@media (max-width: 520px) {
    .wl-grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .wl-control input, .wl-btn { transition: none; }
}
