/**
 * Ponto SeuSaude - Estilos compartilhados das telas do COLABORADOR.
 *
 * Unifica a experiencia das telas de autoatendimento (login, check-in,
 * meu ponto, preferencias, redefinir senha): mesma fonte (Inter), mesmo
 * tema CLARO (melhor para bater ponto a luz do dia) e a mesma paleta teal
 * que e a sub-marca do Ponto. Cada pagina ainda carrega seu <style> proprio
 * para particularidades; aqui ficam os tokens e componentes repetidos.
 */
:root {
    --c-teal: #006666;
    --c-teal-dark: #004d4d;
    --c-teal-darker: #003939;
    --c-cyan: #0e7490;
    --c-bg: #f0fdfa;
    --c-surface: #ffffff;
    --c-text: #1e293b;
    --c-text-2: #475569;   /* contraste >= 7:1 em #fff */
    --c-text-3: #64748b;   /* contraste >= 4.6:1 em #fff */
    --c-border: #e2e8f0;
    --c-border-soft: #f1f5f9;
    --c-radius: 12px;
    --c-radius-sm: 8px;
    --c-shadow: 0 2px 12px rgba(0,0,0,0.06);

    --c-success-bg: #ecfdf5; --c-success-fg: #065f46; --c-success-bd: #a7f3d0;
    --c-danger-bg: #fef2f2;  --c-danger-fg: #991b1b;  --c-danger-bd: #fecaca;
    --c-warn-bg: #fffbeb;    --c-warn-fg: #92400e;    --c-warn-bd: #fde68a;
    --c-info-bg: #f0f9ff;    --c-info-fg: #075985;    --c-info-bd: #bae6fd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Acessibilidade: rotulo so para leitor de tela. */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Acessibilidade: foco visivel por teclado. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--c-teal);
    outline-offset: 2px;
}

/* Topbar comum (check-in colaborador, preferencias). */
.c-topbar {
    background: var(--c-teal);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; z-index: 10;
}
.c-topbar .brand, .c-topbar strong { font-weight: 800; font-size: 1rem; }
.c-topbar a {
    color: #fff; text-decoration: none; font-size: .82rem; opacity: .9;
    padding: 8px 12px; border-radius: 6px; min-height: 36px;
    display: inline-flex; align-items: center;
}
.c-topbar a:hover, .c-topbar a:active { opacity: 1; background: rgba(255,255,255,0.12); }

/* Card e alertas comuns. */
.c-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow);
    padding: 24px;
    margin-bottom: 16px;
}
.c-alert { padding: 12px 14px; border-radius: var(--c-radius-sm); font-size: .88rem; margin-bottom: 14px; font-weight: 500; }
.c-alert-success { background: var(--c-success-bg); color: var(--c-success-fg); border: 1px solid var(--c-success-bd); }
.c-alert-danger  { background: var(--c-danger-bg);  color: var(--c-danger-fg);  border: 1px solid var(--c-danger-bd); }
.c-alert-warning { background: var(--c-warn-bg);    color: var(--c-warn-fg);    border: 1px solid var(--c-warn-bd); }
.c-alert-info    { background: var(--c-info-bg);    color: var(--c-info-fg);    border: 1px solid var(--c-info-bd); }

/* Botao primario teal com alvo de toque >= 44px. */
.c-btn {
    width: 100%; padding: 14px; min-height: 48px;
    background: var(--c-teal); color: #fff;
    border: none; border-radius: var(--c-radius-sm);
    font-size: .95rem; font-weight: 700; cursor: pointer;
    font-family: inherit;
}
.c-btn:hover { background: var(--c-teal-dark); }
.c-btn:active { background: var(--c-teal-darker); }

/* Inputs: font-size 16px evita zoom automatico no iOS. */
.c-input {
    width: 100%; padding: 13px 14px;
    border: 1px solid var(--c-border); border-radius: var(--c-radius-sm);
    font-size: 16px; font-family: inherit; outline: none; -webkit-appearance: none;
}
.c-input:focus { border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(0,102,102,0.12); }
