/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FONTE E CORES */
body {
  font-family: 'Georgia', serif;
  background: #ffffff;
  color: #000000;
  min-height: 100vh;
}

/* LOADER */
#authLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: opacity 0.5s;
}

#authLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* FORMULÁRIOS */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

input, textarea {
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ec4899;
  border-radius: 8px;
  width: 100%;
  font-family: 'Georgia', serif;
}

/* BOTÕES */
button, .btn {
  background-color: #ab4892;
  border: none;
  color:#1b0f6b;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #be185d;
  transform: translateY(-2px);
}

/* LAYOUT LOGIN/CADASTRO */
.login-container, .cadastro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.formulario-login, .formulario-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
}

/* HEADER */
.topbar {
  background-color: #ab4892;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  color: #20355c;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #fef2f2;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 90;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar ul {
  list-style: none;
  margin-top: 60px;
}

.sidebar li {
  margin: 15px 0;
}

.sidebar a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 1.1rem;
}

/* FEED */
#feedContainer {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
}

.post {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
}

.modal-content .close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000000;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .login-container, .cadastro-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 200px;
  }
  
  .modal-content {
    width: 95%;
  }
}
