/* Telas de acesso (login e redefinição de senha) + componentes compartilhados com o painel */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr; background: var(--paper); }
@media (min-width: 960px) { .auth { grid-template-columns: 1.05fr 1fr; } }

.auth__side { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 80% 10%, #0f2232 0%, var(--ink) 60%); color: #fff; padding: 32px clamp(20px, 4vw, 56px); display: none; flex-direction: column; }
@media (min-width: 960px) { .auth__side { display: flex; } }
.auth__side .hero__glow { right: -30%; }
.auth__side img.auth__logo { position: relative; width: 170px; height: auto; }
.auth__visual { position: relative; margin: auto 0; max-width: 560px; }
.auth__visual .hero__slides { aspect-ratio: 4 / 3; }
.auth__quote { position: relative; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; font-stretch: 90%; letter-spacing: -.025em; line-height: 1.1; max-width: 18ch; }
.auth__quote em { color: var(--blue-2); }

.auth__main { display: flex; flex-direction: column; padding: 24px clamp(16px, 5vw, 64px); }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth__top img { width: 150px; height: auto; }
@media (min-width: 960px) { .auth__top img { visibility: hidden; } }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); transition: color .3s, border-color .3s; }
.back:hover { color: var(--text); border-color: var(--text); }

.auth__card { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.auth__card .eyebrow { color: var(--blue); }
.auth__card h1 { margin-top: 16px; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; font-stretch: 90%; letter-spacing: -.03em; }
.auth__card > p.sub { margin-top: 10px; color: var(--muted); }
.auth__form { margin-top: 32px; display: grid; gap: 18px; }
.auth__note { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.auth__note svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.linkbtn { color: var(--blue); font-size: .88rem; font-weight: 500; justify-self: start; }
.linkbtn:hover { text-decoration: underline; }
.auth__row { display: flex; justify-content: space-between; align-items: center; }

/* ---------- campos ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-size: .84rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.field > label small, .field > .label small { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--white);
  border: 1px solid rgba(13, 20, 27, .16); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; outline: none; min-height: 46px;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(13, 20, 27, .3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 136, 204, .14); }
.input[aria-invalid="true"] { border-color: #d93636; box-shadow: 0 0 0 4px rgba(217, 54, 54, .1); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6875' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.help { font-size: .78rem; color: var(--muted); }
.err { font-size: .8rem; color: #c62f2f; font-weight: 500; }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.pw__eye:hover { background: var(--paper); color: var(--text); }
.caps { font-size: .78rem; color: #b46a00; display: none; }
.caps.on { display: block; }

/* ---------- botões do painel ---------- */
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1b2733; transform: translateY(-1px); }
.btn--line { border: 1px solid rgba(13, 20, 27, .18); color: var(--text); background: var(--white); }
.btn--line:hover { border-color: var(--text); }
.btn--danger { background: #fdecec; color: #b42323; }
.btn--danger:hover { background: #f9d6d6; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin, .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .5); animation: toastIn .45s var(--ease); font-size: .9rem; }
.toast b { font-weight: 600; }
.toast p { color: var(--muted-d); font-size: .84rem; margin-top: 2px; }
.toast__ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.toast--err .toast__ic { background: #d93636; }
.toast.out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

[hidden] { display: none !important; }
