/*
 * Otos Vida — página de entrada (templates/login/layouts/otosvida.html.twig).
 * Valores = design/tokens.json (ov-shell.css, também carregada nesta página, define as fontes e --ovs-*).
 */
html, body { height: 100%; }
body { margin: 0; background: var(--ovs-canvas, #f6f4ef); color: var(--ovs-ink, #1d2b3a); font-family: var(--ovs-body, "Source Sans 3", "Segoe UI", Arial, sans-serif); }
.ovl { display: grid; grid-template-columns: minmax(320px, 44%) 1fr; min-height: 100vh; }

/* Marca */
.ovl-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 100%, rgba(200,120,72,.28) 0%, rgba(200,120,72,0) 55%), linear-gradient(160deg, #0d3e69 0%, #0a2f50 100%); }
.ovl-brand::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(255,255,255,.05); pointer-events: none; }
.ovl-brand__logo { align-self: flex-start; padding: 14px 18px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ovl-brand__logo img { display: block; height: 56px; width: auto; }
.ovl-brand__logo span { font: 700 22px/1 var(--ovs-heading, Montserrat, Arial, sans-serif); color: #0d3e69; }
.ovl-brand__text { max-width: 440px; }
.ovl-brand__kicker { margin: 0 0 12px; color: #f0c2a3; font: 600 13px/18px var(--ovs-body); letter-spacing: .08em; text-transform: uppercase; }
.ovl-brand__title { margin: 0 0 16px; font: 700 34px/42px var(--ovs-heading, Montserrat, Arial, sans-serif); }
.ovl-brand__lead { margin: 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 26px; }
.ovl-brand__foot { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

/* Formulário */
.ovl-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 24px; }
.ovl-card { width: 100%; max-width: 400px; padding: 36px 36px 28px; background: #fff; border: 1px solid var(--ovs-line, #e2ddd3); border-top: 4px solid var(--ovs-copper, #c87848); border-radius: 10px; box-shadow: 0 16px 40px rgba(13,62,105,.10); }
.ovl-card__title { margin: 0 0 6px; color: var(--ovs-brand, #0d3e69); font: 700 26px/32px var(--ovs-heading, Montserrat, Arial, sans-serif); }
.ovl-card__sub { margin: 0 0 24px; color: var(--ovs-muted, #5a6878); font-size: 15px; line-height: 22px; }
.ovl-alert { margin: 0 0 20px; padding: 10px 14px; border-left: 4px solid #a33a2a; border-radius: 4px; background: #f8e9e6; color: #8c2f21; font-size: 14px; line-height: 20px; font-weight: 600; }
.ovl-field { margin-bottom: 18px; }
.ovl-field label, .ovl-card .form-group label { display: block; margin-bottom: 6px; color: var(--ovs-ink); font: 600 14px/20px var(--ovs-body); }
.ovl-field input, .ovl-card select { box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--ovs-line-strong, #9c9384); border-radius: 6px; background: #fff; color: var(--ovs-ink); font: 400 16px/22px var(--ovs-body); }
.ovl-field input:focus, .ovl-card select:focus { outline: none; border-color: var(--ovs-brand); box-shadow: 0 0 0 3px rgba(13,62,105,.18); }
.ovl-pass { position: relative; }
.ovl-pass input { padding-right: 50px; }
.ovl-eye { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 4px; background: transparent; color: var(--ovs-muted); cursor: pointer; font-size: 16px; }
.ovl-eye:hover, .ovl-eye:focus-visible { background: var(--ovs-brand-soft, #e6eef6); color: var(--ovs-brand); outline: none; }
.ovl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 6px; background: var(--ovs-brand, #0d3e69); color: #fff; font: 700 16px/20px var(--ovs-body); cursor: pointer; }
.ovl-btn:hover { background: var(--ovs-brand-strong, #0a2f50); }
.ovl-btn:focus-visible { outline: 3px solid rgba(200,120,72,.6); outline-offset: 2px; }
.ovl-btn:disabled { opacity: .85; cursor: progress; }
.ovl-help { margin: 18px 0 0; color: var(--ovs-muted); font-size: 14px; line-height: 20px; text-align: center; }
.ovl-foot { max-width: 400px; margin: 0; color: var(--ovs-muted); font-size: 13px; line-height: 18px; text-align: center; }
.ovl-card .form-group { margin-bottom: 18px; }
.ovl-card .form-group.row { display: block; margin-left: 0; margin-right: 0; }
.ovl-card .form-group.row > [class*="col"] { padding: 0; max-width: none; }

@media (max-width: 860px) {
  .ovl { grid-template-columns: 1fr; }
  .ovl-brand { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
  .ovl-brand::after, .ovl-brand__text, .ovl-brand__foot { display: none; }
  .ovl-brand__logo { padding: 8px 12px; }
  .ovl-brand__logo img { height: 40px; }
  .ovl-main { justify-content: flex-start; padding: 28px 16px; }
  .ovl-card { padding: 28px 22px 22px; }
}