/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #27270f, #595a29, #d1ce03);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: #f0f0f0;
}

/* Container */
.login-container {
  background-color: #1f1f1f;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Logo */
.logo {
  color: #fbff00;
  margin-bottom: 25px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #2c2c2c;
  color: #ddd;
  border-radius: 6px;
  margin: 0 5px;
  transition: background-color 0.3s, color 0.3s;
}

.tab.active {
  background: #fbff00;
  color: #000;
}

/* Formulários */
.form {
  display: none;
  text-align: left;
}

.form.active {
  display: block;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #fff;
}

/* Inputs */
.input-box {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #ccc;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #555;
  background-color: #2c2c2c;
  color: #f0f0f0;
  font-size: 15px;
  transition: border 0.3s, background-color 0.3s;
}

input:focus {
  border-color: #fbff00;
  background-color: #333;
  outline: none;
}

/* Botão */
.btn {
  width: 100%;
  padding: 12px;
  background: #fbff00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background-color: #0088cc;
  color: #fff;
}

/* Link "Esqueceu a senha?" */
.forgot {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
  color: #fff;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #1f1f1f;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  max-width: 320px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content p {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #ff4444; /* vermelho erro */
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
}

.close:hover {
  color: #fff;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Responsivo */
@media (max-width: 480px) {
  .login-container {
    padding: 25px;
  }
}


.btn-voltar {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  text-align: center;
  background: #444;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-voltar:hover {
  background: #666;
}
