/*
 * login.css -- telas públicas de autenticação (login, esqueci/redefinir senha), no layout do closercare1:
 * foto com texto à esquerda e cartão de acesso à direita. Cores só por tokens --cc-* (claro/escuro).
 */
.lc-body { margin: 0; min-height: 100vh; font-family: var(--cc-font); color: var(--cc-text); background: var(--cc-surface); }
.lc-body *, .lc-body *::before, .lc-body *::after { box-sizing: border-box; }
.lc-pagina { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Painel com a foto ---------- */
.lc-hero {
    position: relative; display: flex; align-items: flex-end; padding: 56px; overflow: hidden;
    color: var(--cc-hero-text); background: url("../img/fundo.jpg") 32% center / cover no-repeat;
}
.lc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, var(--cc-hero-a) 0%, var(--cc-hero-b) 55%, var(--cc-hero-c) 100%); }
.lc-hero-conteudo { position: relative; max-width: 520px; }
.lc-selo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lc-hero h2 { margin: 0 0 14px; font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--cc-hero-text); }
.lc-hero p { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.lc-pontos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lc-pontos li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.lc-pontos i { width: 34px; height: 34px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(255, 255, 255, .18); border-radius: 10px; }

/* ---------- Painel do formulário ---------- */
.lc-painel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 28px; background: var(--cc-surface); }
.lc-tema { position: absolute; top: 16px; right: 16px; }
.lc-card { width: 100%; max-width: 410px; }
.lc-logo { display: block; width: 220px; max-width: 70%; height: auto; margin: 0 0 36px; }
.lc-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--cc-text); }
.lc-sub { margin: 0 0 28px; font-size: 14.5px; line-height: 1.55; color: var(--cc-text-muted); }

.lc-campo { margin-bottom: 18px; }
.lc-campo label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--cc-text); }
.lc-entrada {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px;
    background: var(--cc-bg); border: 1.5px solid var(--cc-border); border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lc-entrada:focus-within { background: var(--cc-surface); border-color: var(--cc-brand); box-shadow: 0 0 0 4px var(--cc-focus); }
.lc-entrada > i.lc-icone { order: -1; flex: 0 0 18px; width: 18px; text-align: center; line-height: 1; font-size: 15px; color: var(--cc-text-faint); transition: color .15s ease; }
.lc-entrada:focus-within > i.lc-icone { color: var(--cc-brand); }
.lc-entrada input, .lc-entrada input:focus {
    flex: 1 1 auto; width: auto; min-width: 0; height: 100%; padding: 0; margin: 0;
    font: inherit; font-size: 15px; color: var(--cc-text);
    background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none;
}
.lc-entrada input::placeholder { color: var(--cc-text-faint); }
.lc-olho { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; color: var(--cc-text-faint); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.lc-olho i { display: block; font-size: 15px; line-height: 1; }
.lc-olho:hover { color: var(--cc-brand); background: var(--cc-brand-soft); }

.lc-link { font-size: 13px; line-height: 1.2; font-weight: 600; color: var(--cc-brand-text); text-decoration: none; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.lc-link:hover { color: var(--cc-brand-hover); text-decoration: underline; }
.lc-linha { display: flex; justify-content: flex-end; margin: -6px 0 20px; }

.lc-botao {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px;
    font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none;
    color: var(--cc-hero-text); background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent));
    border: 0; border-radius: 11px; box-shadow: 0 6px 16px rgba(var(--cc-brand-rgb), .28); cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.lc-botao:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(var(--cc-brand-rgb), .4); transform: translateY(-1px); color: var(--cc-hero-text); }
.lc-botao:active { transform: none; }
.lc-botao[disabled] { opacity: .7; cursor: wait; transform: none; }
.lc-botao-leve { margin-top: 12px; color: var(--cc-text); background: var(--cc-surface); border: 1.5px solid var(--cc-border); box-shadow: none; }
.lc-botao-leve:hover { filter: none; background: var(--cc-bg); box-shadow: none; color: var(--cc-text); }

/* etapas (login → 2FA → empresa) */
.lc-etapa { display: none; animation: lcEntra .25s ease; }
.lc-etapa.lc-ativa { display: block; }
@keyframes lcEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lc-voltar { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13.5px; font-weight: 600; color: var(--cc-text-muted); background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-decoration: none; }
.lc-voltar:hover { color: var(--cc-brand); }
.lc-icone-grande { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 18px; font-size: 22px; color: var(--cc-brand); background: var(--cc-brand-soft); border-radius: 16px; }
.lc-aviso { margin: 0 0 20px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--cc-brand-text); background: var(--cc-brand-soft); border: 1px solid rgba(var(--cc-brand-rgb), .25); border-radius: 12px; }
.lc-codigo .lc-entrada { padding: 0 14px; }
.lc-codigo input { letter-spacing: .45em; font-size: 20px; font-weight: 700; text-align: center; }

/* mensagens (erro / ok) */
.lc-msg { display: none; margin-bottom: 16px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.lc-msg.erro { background: var(--cc-danger-soft); color: var(--cc-danger); }
.lc-msg.ok { background: var(--cc-success-soft); color: var(--cc-success); }

/* escolha da empresa */
.lc-empresas { display: grid; gap: 10px; }
.lc-empresa { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: var(--cc-text); background: var(--cc-bg); border: 1.5px solid var(--cc-border); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.lc-empresa:hover { border-color: var(--cc-brand); background: var(--cc-brand-soft); transform: translateY(-1px); }
.lc-empresa > i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-size: 17px; color: var(--cc-brand); background: var(--cc-brand-soft); border-radius: 10px; }
.lc-empresa strong { display: block; font-size: 14.5px; }
.lc-empresa small { display: block; color: var(--cc-text-muted); font-weight: 500; }

.lc-rodape { width: 100%; max-width: 410px; margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: var(--cc-text-muted); text-align: center; border-top: 1px solid var(--cc-border); }
.lc-rodape a { color: var(--cc-brand-text); font-weight: 600; text-decoration: none; }
.lc-rodape a:hover { text-decoration: underline; }

/* ---------- Telas menores ---------- */
@media (max-width: 991px) {
    .lc-pagina { grid-template-columns: 1fr; }
    .lc-hero { display: none; }
    .lc-painel { min-height: 100vh; padding: 32px 22px; background: linear-gradient(180deg, var(--cc-brand-soft) 0%, var(--cc-surface) 38%); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .lc-hero { padding: 40px; }
    .lc-hero h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .lc-etapa { animation: none; } .lc-botao, .lc-empresa { transition: none; } }
