/* assets/css/professores.css
   Página de professores + registro + confirmação + login + perfil-professor.
   Hero reaproveita a lógica do index.php (padding-left com calc).
*/

.hero-professores {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-professores .hero-conteudo {
  padding: 64px 24px;
  padding-left: max(24px, calc((100vw - 1120px) / 2 - 40px));
  max-width: 720px;
}

.hero-professores h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 16px; }
.hero-professores p  { margin: 0 0 12px; line-height: 1.5; }

/* Seções gerais */
.secao-professores { padding: 48px 0; max-width: 900px; margin: 0 auto; }
.bloco-professores { margin-bottom: 40px; }
.bloco-professores h2 { margin: 0 0 12px; font-size: 1.5rem; }
.bloco-professores p  { line-height: 1.6; margin: 0 0 12px; }

/* Botões (fallback se o tema já não tiver) */
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; text-decoration: none; border: 0 solid currentColor; background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.btn-primario { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.btn-primario:hover { background: #17602d; border-color: #17602d; }

/* Formulário de registro */
.form-registro fieldset { border: 1px solid #ddd; border-radius: 8px; padding: 16px 20px; margin: 0 0 20px; }
.form-registro legend { padding: 0 8px; font-weight: 700; }
.form-registro label { display: block; margin: 0 0 12px; font-size: .95rem; }
.form-registro input[type="text"],
.form-registro input[type="email"],
.form-registro input[type="tel"],
.form-registro input[type="password"],
.form-registro select { width: 100%; padding: 10px 12px; border: 1px solid #bbb; border-radius: 6px; font: inherit; box-sizing: border-box; }
.form-registro .grupo-checkbox { margin: 0 0 12px; }
.form-registro .grupo-checkbox > span { display: block; font-weight: 600; margin-bottom: 8px; }
.form-registro label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; font-weight: 400; }
.form-registro .obs { font-size: .85rem; color: #555; margin: 8px 0 0; }
.form-registro .privacidade { font-size: .85rem; margin-top: 8px; }
.form-registro .acoes-form { text-align: center; margin-top: 24px; }

/* Alertas */
.alerta { padding: 14px 18px; border-radius: 6px; margin: 0 0 20px; }
.alerta-erro    { background: #fde8e8; color: #8a1c1c; border: 1px solid #f5b5b5; }
.alerta-sucesso { background: #e6f6ea; color: #14532d; border: 1px solid #b7e2c2; }
.alerta ul { margin: 0; padding-left: 18px; }

/* Login / perfil / confirmação */
.secao-login, .secao-confirmar, .secao-perfil-professor, .secao-registro {
  max-width: 640px; margin: 48px auto; padding: 0 24px;
}
.form-login label { display: block; margin-bottom: 12px; }
.form-login input { width: 100%; padding: 10px 12px; border: 1px solid #bbb; border-radius: 6px; box-sizing: border-box; }
.rodape-form { margin-top: 16px; font-size: .9rem; }

.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.status-pendente   { background: #fff3cd; color: #7a5a00; }
.status-confirmado { background: #d1f2dc; color: #14532d; }
.status-cancelado  { background: #f8d7da; color: #7a1c24; }

/* Responsivo */
@media (max-width: 720px) {
  .hero-professores .hero-conteudo { padding: 64px 16px; }
  .secao-professores { padding: 32px 16px; }
  .bloco-professores h2 { font-size: 1.3rem; }
}
/* Faixa mínima no topo do registro.php (substitui o hero) */
.faixa-registro {
  background: #f3f6f3;
  border-bottom: 1px solid #e0e6e0;
  padding: 24px 24px;
  padding-left: max(24px, calc((100vw - 1120px) / 2 - 40px));
  padding-right: max(24px, calc((100vw - 1120px) / 2 - 40px));
}
.faixa-registro h1 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  font-weight: 700;
}
.faixa-registro p {
  margin: 0;
  font-size: .95rem;
  color: #444;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .faixa-registro { padding: 20px 16px; }
  .faixa-registro h1 { font-size: 1.2rem; }
}
/* Padrão do projeto: input de senha com toggle (CONTEXTO §22) */
.campo-senha {
  position: relative;
  display: block;
}
.campo-senha input {
  padding-right: 44px; /* espaço pro olho */
}
.btn-olho {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 4px;
  color: #555;
}
.btn-olho:hover,
.btn-olho:focus-visible {
  background: #eef2ee;
  color: #1f7a3a;
  outline: none;
}
.btn-olho.ativo { color: #1f7a3a; }
/* ---------- Page actions (block-header) — 2026-11-28 ---------- */
.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 0 20px;
}
.block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}
.block-options {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.btn-block-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    font-family: inherit;
}
.btn-block-option:hover {
    background: #eef2ee;
    border-color: #1f7a3a;
    color: #1f7a3a;
}
.btn-block-option:active { transform: translateY(1px); }
.btn-block-option:focus-visible {
    outline: 2px solid #1f7a3a;
    outline-offset: 1px;
}
@media (max-width: 640px) {
    .block-header { padding: 10px 12px; }
    .block-title  { font-size: .92rem; }
    .btn-block-option { width: 30px; height: 30px; font-size: 14px; }
}