/* Justifica texto */
.texto-justificado {
  text-align: justify;
  hyphens: auto;
}

/* Reset e fonte global */
html {
    overflow-x: hidden;   /* impede scroll horizontal no mobile */
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
* {
  box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* toda a altura da tela */
}

/* Formulários - bloco centralizado */
.form-container {
  background: #fff;
  padding: 34px 24px 28px 24px;
  border-radius: 18px;
  max-width: 420px;       /* Menor largura para foco, pode aumentar se quiser: 500px */
  margin: 48px auto;
  box-shadow: 0 4px 18px #0001;
  color: #000;
}

/* Título centralizado */
.form-container h2 {
  text-align: center;
  margin-bottom: 32px;
}

/* Linha de cada campo */
.form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

/* Label mais largo, campo à direita */
.form-container label {
  min-width: 130px;
  text-align: left;
  font-weight: 500;
  font-size: 1em;
  color: #444;
  margin-bottom: 0; /* evita espaço duplo no mobile */
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  border: 2px solid #4caf50;
  background: #f1faf0;
  outline: none;
}

/* Botão de envio */
.form-container button[type="submit"] {
  display: block;
  margin: 30px auto 0 auto;
  background: #4caf50;
  color: #fff;
  font-size: 1.05em;
  padding: 10px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s;
}
.form-container button[type="submit"]:hover {
  background: #3c8c3c;
}

/* Dica */
small.hint {
  font-size: 12px;
  color: #777;
  display: none;
}
input:focus + .hint,
textarea:focus + .hint {
  display: block;
}


/* Responsividade: stack no mobile */
@media (max-width: 600px) {
  .form-container { padding: 20px 2vw; }
  .form-group { flex-direction: column; align-items: stretch;}
  .form-container label { margin-bottom: 5px; min-width: 0; }
  .form-container input, .form-container select, .form-container textarea { text-align: left; min-width: 0;}
}
/* Para manter tudo igual em selects, radios, etc */
.form-container select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Ajuste para radios e checkboxes ficarem alinhados no label */
.form-container input[type="radio"],
.form-container input[type="checkbox"] {
  flex: 0 0 auto;
  min-width: 20px;
  margin-right: 8px;
  accent-color: #4caf50;
}


/* Tabela de Reservas */
.table th, .table td {
  vertical-align: middle;
  text-align: center;
}

.table th {
  background: #f0f0f0;
  font-weight: 600;
  color: #333;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fdfdfd;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: #f8f8f8;
}

/* Tabela com bordas suaves */
.table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

/* Ações em coluna com espaçamento */
.table .btn {
  margin: 0 2px;
}



@media (max-width: 800px) {
  .form-container-log {
    left: 10px;
    right: 10px;
    margin-left: 0;
    margin-right: 0;
    max-width: 98vw;
    top: 60px;
  }
  main {
    padding-bottom: 70px;
  }
}

/* Outros ajustes herdados do cadastro */
.form-container-log h2 {
  text-align: center;
  margin-bottom: 32px;
}
.form-group-log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.form-group-log label {
  min-width: 90px;
  text-align: left;
  font-weight: 500;
  font-size: 1em;
  color: #444;
  margin-bottom: 0;
}
.form-container-log input {
  flex: 1;
  min-width: 120px;
  padding: 7px 10px;
  border: 1.2px solid #ddd;
  border-radius: 7px;
  text-align: center;
  font-size: 1em;
  background: #f7f7fd;
  transition: border 0.2s, background 0.2s;
}
.form-container-log input:focus {
  border: 2px solid #4caf50;
  background: #f1faf0;
  outline: none;
}
.form-container-log button[type="submit"] {
  display: block;
  margin: 30px auto 0 auto;
  background: #4caf50;
  color: #fff;
  font-size: 1.05em;
  padding: 10px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s;
}
.form-container-log button[type="submit"]:hover {
  background: #3c8c3c;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  position: relative;
  padding-bottom: 62px; /* altura do footer */
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #faf8f2;
}
* {
  box-sizing: border-box;
}

footer {
  width: 100%;
  background: #654321;
  color: #fff;
  text-align: center;
  padding: 14px 0 16px 0;
  z-index: 10;
  font-size: 1em;
  margin-top: 36px;
  position: relative;  /* NÃO use fixed */
}
main {
    flex: 1 0 auto;  /* cresce para ocupar o espaço entre header e footer */
    padding-bottom: 22px; /* só um espaço extra para mobile */
}
body.bg-imagem, main.bg-imagem {
    background-image: url('/static/imagem/rancho_cobrinha/img/drone01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}
.fundo-dinamico {
    background-image: url('{% static fundo_img %}');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - 65px - 60px);
    position: relative;
}
.fundo-dinamico::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
    z-index: 0;
}
.centralizado, .galeria-container { position: relative; z-index: 1; }
.dropdown-area select {
    padding: 9px 32px 9px 12px;
    border-radius: 7px;
    border: 1.7px solid #3b2a22;
    font-size: 1.05em;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/18px 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 10px #0001;
    color: #4b3c2c;
    transition: border 0.2s, box-shadow 0.2s;
}

.dropdown-area select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 6px #b2ff59;
    outline: none;
}
.hero-login{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* quebra a centralização do wrapper */
  margin-right: calc(50% - 50vw);
}
/* Card do login ancorado no topo-esquerdo da TELA */
:root{ --header-h: 70px; } /* ajuste se seu header for mais alto/baixo */

.form-container-log{
  position: fixed;                        /* <- chave */
  top: calc(var(--header-h) + 20px);      /* “um pouco abaixo” do header */
  left: 24px;                             /* canto esquerdo */
  z-index: 1000;

  max-width: 420px;
  padding: 34px 24px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 18px #0001;
  margin: 0;                              /* garante sem centralização */
}

/* Mobile: não cortar o card */
@media (max-width: 800px){
  .form-container-log{
    position: static;        /* volta pro fluxo normal */
    max-width: 96vw;
    margin: 16px auto 0;
  }
}