@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0e0e11;
  color: #fff;
  height: 100vh;
}

.wrapper {
  display: flex;
  height: 100vh;
}

.left-panel {
  flex: 1;
  background: linear-gradient(#7b1fe0cc, #7b1fe0cc), url('../imagens/painel.jpeg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.left-panel .overlay {
  text-align: center;
  padding: 20px;
  color: white;
}

.left-panel h1 {
  font-size: 40px;
  font-weight: 700;
}

.left-panel h1 span {
  color: #ffffff;
  font-weight: 900;
}

.left-panel p {
  font-size: 20px;
  font-weight: 400;
}

.left-panel p span {
  font-style: italic;
  opacity: 0.8;
}

.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background-color: #15151a;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px #2b2b2b;
  width: 350px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  height: 400px;
}

.buttonsForm {
  display: flex;
  background-color: #1f1f27;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.buttonsForm button {
  flex: 1;
  padding: 10px;
  color: #ccc;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.buttonsForm button:focus {
  color: #fff;
}

.btnColor {
  position: absolute;
  background-color: #a020f0;
  width: 50%;
  height: 100%;
  border-radius: 30px;
  transition: .3s;
  z-index: 0;
  left: 0;
}

.title {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
  color: white;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: .5s;
}

input[type="text"],
input[type="password"] {
  padding: 12px 15px;
  border: 1px solid #444;
  background-color: #111;
  border-radius: 8px;
  color: white;
}

button[type="submit"] {
  background-color: #a020f0;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background-color: #7b1fe0;
}

.forms-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.form {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(1%);
  transition: all 0.5s ease-in-out;
  pointer-events: none;
}

.form.active {
  opacity: 1;
  transform: translateX(0%);
  pointer-events: all;
  position: relative;
}

/* PRELOADER INICIAL - começa VISÍVEL */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1f0036, #4b0082);
  display: flex; /* importante começar visível */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
  font-family: 'Poppins', sans-serif;
}


/* loader circular simples para preloader inicial */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #a147f5;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Animações para outros elementos */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadein {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes progress {
  to {
    width: 100%;
  }
}
