/* Reset e estilização base */
html, body {
  background: #fafafa;
  font-family: 'Open Sans', sans-serif;
  padding: 0;
  margin: 0;
  height: 100%;
}

/* Wrapper geral para o site (centraliza horizontalmente e define altura total) */
#wrapper {
  display: flex;
  justify-content: center;    /* centraliza .login-section na horizontal */
  align-items: flex-start;    /* começa pelo topo; veja margin-top em .login-section */
  height: 100vh;              /* ocupa 100% da altura da janela */
  box-sizing: border-box;
}

/* --------------------------------------------
   Estilos da seção de login (tanto cliente quanto admin),
   “descendo” um pouco com margin-top, mas mantendo tudo centralizado
-------------------------------------------- */
.login-section {
  margin-top: 200px;           /* “desce” o bloco para baixo; ajuste conforme desejar */
  background: #ffffff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 56px rgb(219, 219, 219);
  width: 400px;
  min-width: 320px;
  border-radius: 8px;
 
  text-align: center;
  font-size: 13px;
}

@media screen and (max-width: 480px) {
  
    .login-section {
        margin-top: 220px; /* Reduz ainda mais o espaçamento do topo */
        width: 100%; /* Ocupa um pouco mais da largura em telas bem pequenas */
        padding: 2,5em; /* Reduz mais o preenchimento */
        font-size: 11px; /* Fonte ainda menor para caber melhor */
        box-shadow: 0 0 30px rgb(219, 219, 219); /* Sombra um pouco mais sutil, se quiser */
    }
        .login-section h2 {

      font-size: 22px;
      
      
    }
}

.login-section h2 {
  margin-bottom: 1em;
  
  color: #868686;
  
  
  margin-top: 10px;
  padding-top: 5px;
  text-transform: capitalize;
}

.kanit-extrabold-italic {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 27px;
  
  
}

.login-section form {
  display: flex;
  flex-direction: column;
}

.login-section label {
  margin: 1.5em 0 0.3em 0;
  text-align: left;
  color: #888888;
  font-weight: 400;
}

.login-section input[type="text"],
.login-section input[type="password"] {
  color: #252525;
  padding: 0.5em;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1.1em;
  background-color: #ffffff;
}

.login-section button {
  display: block;
  width: 200px;
  margin: 1.5em auto 0 auto;
  padding: 1em 2;
  border-radius: 5px;
  border: none;
  background-color: #868686 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(90, 90, 90, 0.4);
  text-align: center;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}

.login-section button:hover {
  background-color: #585858 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 12px rgba(206, 206, 206, 0.6);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.login-section button:active {
  background-color: #a3a3a3 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(116, 116, 116, 0.8);
  transform: translateY(0);
  text-decoration: none !important;
}

.logo-title a {
  font-size: 0.2rem;
  font-weight: normal;
}

/* --------------------------------------------
   Seções de painel admin e galeria (permanece igual)
   para quem usar .login-section em páginas internas
-------------------------------------------- */
.admin-dashboard {
  padding: 20px;
}

.admin-dashboard h2,
.admin-dashboard h3 {
  margin-top: 30px;
}

.admin-dashboard form {
  margin-bottom: 30px;
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard button {
  padding: 10px;
  margin: 5px 0;
  display: block;
  width: 100%;
  max-width: 300px;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.galeria img {
  border-radius: 8px;
  border: 1px solid #ccc;
  max-width: 100px;
}

/* --------------------------------------------
   Container e colunas do painel admin
   (caso esteja usando no mesmo arquivo CSS)
-------------------------------------------- */
.admin-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top:200px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.admin-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2rem;
}

.admin-left,
.admin-right,
.admin-manage {
  background-color: #e6e6e6;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgb(223, 223, 223);
  box-shadow: 10px 10px 10px rgba(168, 168, 168, 0.1);
  color: #000;
  text-align: center;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 300px;
  max-width: 450px;
  min-height: 420px;
  box-sizing: border-box;
  margin-top: 0;
  
}

.admin-left h3,
.admin-right h3,
.admin-manage h3 {
  color: #4e4e4e;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 1.2em;
}

.admin-left form,
.admin-right form {
  display: flex;
  flex-direction: column;
}

.admin-left label,
.admin-right label,
.admin-manage label {
  margin: 1.2em 0 0.3em 0;
  color: #888888;
  font-weight: 400;
  display: block;
  text-align: left;
}

.admin-left input[type="text"],
.admin-left input[type="password"],
.admin-right select,
.admin-right input[type="file"],
.admin-manage select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1.1em;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Botões em cada coluna */
.admin-left button,
.admin-right button,
.admin-manage button {
  display: block;
  width: 200px;
  margin: 1.5em auto 0 auto;
  padding: 1em 2em ;
  border-radius: 5px;
  border: none;
  background-color: #868686 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(90, 90, 90, 0.4);

  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
  text-align: center
  
}

.admin-left button:hover,
.admin-right button:hover,
.admin-manage button:hover:not(:disabled) {
  background-color: #585858 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 12px rgba(206, 206, 206, 0.6);
  transform: translateY(-2px);
  text-decoration: none !important;
    margin: 1.5em auto 0 auto;
      text-align: center;
}

.admin-left button:active,
.admin-right button:active,
.admin-manage button:active:not(:disabled) {
  background-color: #a3a3a3 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(116, 116, 116, 0.8);
  transform: translateY(0);
  text-decoration: none !important;
   text-align: center;
     margin: 1.5em auto 0 auto;
      text-align: center;
}

.admin-manage button:disabled {
  background-color: #c1c1c1 !important;
  color: #7a7a7a !important;
  cursor: not-allowed !important;
  text-decoration: none !important;
   text-align: center;
     margin: 1.5em auto 0 auto;
}

/* Estilização específica apenas para os botões de gerenciar clientes */
#btn-excluir-cliente,
#btn-excluir-galeria,
#btn-ver-galeria {
  display: block;
  width: 200px;
  margin: 8px auto;
  padding: 1em 0em;
  text-align: center;
}


/* --------------------------------------------
   Flash message
-------------------------------------------- */
.flash-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.flash-message {
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-align: center;
  animation: fadeOutOpacity 3s forwards;
  max-width: 300px;
  width: auto;
  z-index: 10;
}

@keyframes fadeOutOpacity {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* --------------------------------------------
   Responsividade: telas menores empilham colunas
-------------------------------------------- */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
    align-items: center;
    
  }
  .admin-left,
  .admin-right,
  .admin-manage {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
}

/* --------------------------------------------
   Impedir links dentro de botões mudem estilo
-------------------------------------------- */
button a {
  color: inherit !important;
  text-decoration: none !important;
   text-align: center;
}
a.button,
.admin-left a.button,
.admin-right a.button,
.admin-manage a.button,
.login-section a.button {
  background-color: #868686 !important;
  color: #ffffff !important;
  text-decoration: none !important;
   text-align: center;
}
a.button:hover,
.admin-left a.button:hover,
.admin-right a.button:hover,
.admin-manage a.button:hover,
.login-section a.button:hover {
  background-color: #585858 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
a.button:active,
.admin-left a.button:active,
.admin-right a.button:active,
.admin-manage a.button:active,
.login-section a.button:active {
  background-color: #a3a3a3 !important;
  color: #ffffff !important;
  text-decoration: none !important;
   text-align: center;
}
a.button:disabled,
.admin-manage a.button:disabled,
.login-section a.button:disabled {
  background-color: #c1c1c1 !important;
  color: #7a7a7a !important;
  cursor: not-allowed !important;
  text-decoration: none !important;
   text-align: center;
}

/* Garante que todo botão tenha texto branco */
button,
.admin-left button,
.admin-right button,
.admin-manage button,
.login-section button {
  color: #ffffff !important;
   text-align: center;
}

/* Estilo normal: centralizado */
.center {
  text-align: center;
}

.logo {
  width: 200px;
  height: auto;
  margin-left: 0; /* margem padrão pro desktop */
}

@media (max-width: 600px) {
  .logo {
    margin-left: -180px; /* margem menor só no celular */
    width: 100px; /* opcional, pra ficar menor na tela pequena */
  }
}

.pagina-login #footer.panel {
  display: none !important;
}

