/* ================================================
   TucaFut — CSS público (baseado no design "Meu Agendador")
================================================ */
.tf-public *, .tf-public *::before, .tf-public *::after{ box-sizing:border-box; }
.tf-public{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    max-width:900px; margin:0 auto; color:#1e2a3a;
}

/* ── Grade de turmas ── */
.tf-turmas-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin-bottom:28px; }
.tf-turma-card{
    background:#fff; border-radius:16px; padding:20px 22px; border:1px solid #e5eaf0;
    box-shadow:0 2px 12px rgba(0,0,0,.06); display:flex; flex-direction:column; gap:6px;
}
.tf-turma-card h3{ margin:0; color:#0f2744; font-size:16px; font-weight:700; }
.tf-turma-cat{ color:#94a3b8; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; margin:0; }
.tf-turma-prof{ color:#1a3a5c; font-size:12.5px; font-weight:600; margin:0; }
.tf-turma-cancelada{ color:#92400e; background:#fff8e1; border:1px solid #fde68a; border-radius:6px; padding:6px 10px; font-size:12px; font-weight:600; margin:6px 0 0; }
.tf-turma-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ── Botões públicos ── */
.tf-btn{ display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 16px; border-radius:8px; border:none; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; transition:all .15s; font-family:inherit; }
.tf-btn-primary{ background:#1a3a5c; color:#fff; }
.tf-btn-primary:hover{ background:#0f2744; }
.tf-btn-success{ background:#059669; color:#fff; }
.tf-btn-success:hover{ background:#047857; }
.tf-btn-danger{ background:#dc2626; color:#fff; }
.tf-btn-danger:hover{ background:#b91c1c; }
.tf-btn-ghost{ background:#f1f5f9; color:#475569; border:1.5px solid #e5eaf0; }
.tf-btn-ghost:hover{ background:#e2e8f0; }
.tf-btn-sm{ height:32px; padding:0 12px; font-size:12px; border-radius:6px; }

/* ── Formulário de cadastro / autoatendimento ── */
.tf-form-container{ background:#fff; border:1px solid #e5eaf0; border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.06); margin-bottom:24px; }
.tf-form-header{ background:linear-gradient(135deg,#0f2744,#1a3a5c); padding:20px 28px; }
.tf-form-header h3{ margin:0 0 3px; font-size:17px; font-weight:700; color:#fff; }
.tf-form-header p{ margin:0; font-size:12px; color:rgba(255,255,255,.65); }
.tf-form-body{ padding:24px 28px; }

.tf-public-form{ display:flex; flex-direction:column; gap:2px; }
.tf-field, .tf-form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.tf-field label, .tf-form-row label{ font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.05em; }
.tf-field input[type=text], .tf-field input[type=email], .tf-field input[type=tel],
.tf-field input[type=number], .tf-field select, .tf-form-row input, .tf-form-row select{
    padding:11px 14px; border:1.5px solid #e5eaf0; border-radius:10px; font-size:14px; font-family:inherit;
    color:#1e2a3a; background:#fafbfc; transition:border-color .15s, box-shadow .15s; height:44px; box-sizing:border-box;
}
.tf-field select, .tf-form-row select{ appearance:auto; -webkit-appearance:menulist; cursor:pointer; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.tf-field input:focus, .tf-form-row input:focus, .tf-field select:focus, .tf-form-row select:focus{
    outline:none; border-color:#1a3a5c; background:#fff; box-shadow:0 0 0 3px rgba(26,58,92,.08);
}

/* ── Tabs estilo pill (CPF / Cadastro / Ações) ── */
.tf-login-tabs{ display:flex; gap:8px; margin-bottom:24px; justify-content:center; flex-wrap:wrap; }
.tf-login-tab{ padding:10px 22px; border:2px solid #e5eaf0; border-radius:50px; background:#fff; cursor:pointer; font-size:13.5px; font-weight:600; color:#64748b; transition:all .2s; font-family:inherit; }
.tf-login-tab:hover{ border-color:#1a3a5c; color:#1a3a5c; background:#f0f5ff; }
.tf-login-tab.active{ background:#1a3a5c; border-color:#1a3a5c; color:#fff; box-shadow:0 4px 14px rgba(26,58,92,.25); }
.tf-login-panel{ display:none; }
.tf-login-panel.active{ display:block; }

/* ── Avisos / mensagens ── */
.tf-alert{ padding:14px 18px; border-radius:10px; margin-bottom:16px; font-weight:600; font-size:13.5px; }
.tf-alert-success{ background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.tf-alert-error{ background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
.tf-aviso{ background:linear-gradient(135deg,#fff8e1,#fffbf0); border:1px solid #fde68a; border-radius:14px; padding:14px 20px; margin-bottom:20px; font-size:13.5px; color:#92400e; }

.tf-badge{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.tf-badge::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.tf-badge-info{ background:#ecfeff; color:#0e7490; }
.tf-badge-ok{ background:#f0fdf4; color:#16a34a; }
.tf-badge-bad{ background:#fff1f2; color:#dc2626; }
.tf-vagas-info{ font-size:13px; font-weight:600; color:#1a3a5c; margin-top:4px; }
.tf-vagas-ok{ color:#16a34a; font-weight:700; }
.tf-vagas-cheia{ color:#d97706; font-weight:700; }

.tf-vagas-linha{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.tf-badge-vagas-livres{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12.5px; font-weight:800; background:#f0fdf4; color:#15803d; border:1.5px solid #bbf7d0; }
.tf-badge-vagas-alunos{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12.5px; font-weight:800; background:#eff6ff; color:#1d4ed8; border:1.5px solid #bfdbfe; }

.tf-dependente-row{ background:#f8fafc; border:1px solid #e5eaf0; border-radius:10px; padding:14px; max-width:100%; overflow:hidden; box-sizing:border-box; }
.tf-dependente-row .tf-field{ margin-bottom:0; min-width:0; }
.tf-linha-praticante, .tf-linha-dependente{
    display:grid; gap:10px; align-items:end;
    grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
}
.tf-linha-praticante .tf-remove-linha, .tf-linha-dependente .tf-remove-linha{ grid-column:1/-1; justify-self:start; }
@media (min-width:560px){
    .tf-linha-praticante .tf-remove-linha, .tf-linha-dependente .tf-remove-linha{ grid-column:auto; justify-self:auto; }
}

/* Carrossel de turmas - voltou pro formato anterior (1 card por vez, mais legível); o que
   mudou é que agora ele passa sozinho, com intervalo configurável em Configurações > Geral. */
.tf-carrossel-wrap{ position:relative; display:flex; align-items:center; gap:8px; }
.tf-carrossel-trilho{
    display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
    padding:6px 2px 14px; flex:1; -webkit-overflow-scrolling:touch;
}
.tf-carrossel-trilho::-webkit-scrollbar{ height:6px; }
.tf-carrossel-trilho::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:10px; }
.tf-carrossel-item{ flex:0 0 280px; scroll-snap-align:start; }
.tf-carrossel-seta{
    flex-shrink:0; width:38px; height:38px; border-radius:50%; border:1.5px solid #e5eaf0; background:#fff;
    font-size:20px; line-height:1; color:#1a3a5c; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.tf-carrossel-seta:hover{ background:#f0f5ff; border-color:#1a3a5c; }
@media (max-width:680px){
    .tf-carrossel-item{ flex-basis:240px; }
}

.tf-info-box{ background:#f8fafc; border-left:3px solid #1a3a5c; border-radius:0 8px 8px 0; padding:12px 16px; font-size:13px; color:#475569; margin-bottom:16px; }
.tf-muted{ color:#64748b; font-size:13px; }

/* ── Caixa de código 2FA ── */
.tf-codigo-input{ letter-spacing:8px; font-size:22px; font-weight:700; text-align:center; max-width:200px; margin:0 auto; }

@media (max-width:680px){
    .tf-turmas-grid{ grid-template-columns:1fr; }
    .tf-login-tabs{ gap:6px; }
    .tf-login-tab{ font-size:12px; padding:8px 14px; }
}
