/* Tela de login do Biscoito Fino BI — mesmo padrão do acesso Biscoito Fino. */
:root {
  --accent: #e6ab3d;
  --accent-dark: #bd8120;
  --brand-orange: #f09200;
  --ink: #171717;
  --muted: #706d69;
  --line: #dedad4;
  --paper: #f5f3ef;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--paper); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* Painel de marca (esquerda) */
.login-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(40px, 7vw, 96px);
  background: radial-gradient(circle at 18% 22%, #2a2620 0%, #171612 55%, #0f0e0b 100%);
  color: #fff; border-right: 4px solid var(--accent);
}
.login-aside::after {
  content: ""; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 46px solid rgba(240,146,0,.10); box-shadow: 0 0 0 70px rgba(240,146,0,.05);
}
.login-aside-logo { width: clamp(120px, 14vw, 180px); height: auto; margin-bottom: 36px; filter: drop-shadow(0 12px 30px rgba(240,146,0,.28)); }
.login-aside-title { margin: 0 0 14px; font: 700 clamp(34px, 4vw, 52px)/1.05 "Playfair Display", Georgia, serif; letter-spacing: -.02em; }
.login-aside-text { max-width: 400px; margin: 0; color: #c9bfae; font-size: 17px; line-height: 1.6; }

/* Formulário (direita) */
.form-panel { display: grid; place-items: center; padding: 32px 20px; }
.form-card {
  width: min(100%, 440px); padding: clamp(30px, 5vw, 48px); background: #fff;
  border: 1px solid #e7e2da; border-top: 4px solid var(--accent); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(49, 42, 31, .09);
}
.login-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 34px; padding-bottom: 14px; border-bottom: 3px solid var(--accent); width: max-content; }
.login-brand img { width: 48px; height: 48px; }
.login-brand strong { display: block; font: 700 22px/1.1 "Playfair Display", Georgia, serif; }
.login-brand span { display: block; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .28em; }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.form-intro { margin: 0 0 30px; color: var(--muted); line-height: 1.6; }

.login-alert {
  display: flex; align-items: center; gap: 10px; margin: -10px 0 22px; padding: 12px 14px;
  border: 1px solid #f0d49a; border-radius: 7px; background: #fff8e8; color: #5a3f0b; font-size: 14px;
}
.login-alert span { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; color: #241a08; background: var(--accent); font-weight: 700; }

label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; margin-bottom: 20px; }
.input-wrap > svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #9c968e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
input[type="text"], input[type="password"] {
  width: 100%; height: 52px; padding: 0 48px; border: 1px solid var(--line); border-radius: 7px; outline: none;
  background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,171,61,.18); }
.show-password { position: absolute; right: 8px; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.show-password svg { width: 19px; height: 19px; fill: none; stroke: #9c968e; stroke-width: 1.7; }
.show-password[aria-pressed="true"] svg { stroke: var(--accent-dark); }
.show-password:focus-visible { outline: 2px solid var(--accent); }

.submit-button {
  width: 100%; height: 54px; margin-top: 7px; padding: 0 20px; display: flex; justify-content: center; align-items: center; gap: 14px;
  border: 0; border-radius: 7px; color: #241a08; background: var(--accent); font: 700 14px "DM Sans", Arial, sans-serif; cursor: pointer;
  box-shadow: 0 8px 20px rgba(190,129,32,.22); transition: transform .2s, background .2s;
}
.submit-button:hover { background: #eeb64c; transform: translateY(-1px); }
.submit-button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.security-note { margin: 26px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.security-note span { color: var(--accent); margin-right: 6px; font-size: 8px; }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .form-panel { min-height: 100vh; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
