:root {
    --nav-height: 0px; /*You HAVE To Give A Default Fallback Value*/
}


.logo {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px auto;
  height: auto;
  transition: transform 0.8s ease, max-width 0.8s ease, margin 0.8s ease;
  z-index: 10;
  will-change: transform;
}

.logo.move-to-top {
  top: 0;
}

/* Overlay escuro translúcido */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Telinha de login */
.login-box {
  background: white;
  color: black;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  animation: slideDown 0.6s ease forwards;
}

.login-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

/* Botão de voltar modernizado */
#backButton {
  position: absolute;
  top: 16px;
  left: 16px;
  background: white;
  color: black;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

#backButton:hover {
  background: #eee;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
  border-color: #f1751c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(241, 117, 28, 0.2);
}

.login-box button[type="submit"] {
  background-color: #f1751c;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.login-box button[type="submit"]:hover {
  background-color: #e16615;
}

/* Logo sobe */
.logo.expand-to-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 10px 0;
  background-color: #f1751c;
  z-index: 999;
  transform: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1); /* opcional */
}

/* Textos somem */
.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Loader */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #f1751c;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* opcional: leve deslizamento */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.fade-out-down {
  animation: fadeOutDown 0.3s ease forwards;
}