@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url(../assets/Gemini_Generated_Image.png);
  background-size: cover;
}

.box {
  width: 500px;
  
  height: 450px;
  background: #23242a;
  border-radius: 10px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  padding: 32px 24px 24px 24px;
  position: relative;
  z-index: 2; /* Keeps the form on top of the pseudo elements */
}



.box form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.box form h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.5em;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.inputBox {
  width: 100%;
  position: relative;
  padding-bottom: 10px;
}

.inputBox input[type="email"] {
  width: 100%;
  padding: 14px 12px 14px 12px;
  background: #2c2f36;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: border 0.3s;
}

/* .inputBox input[type="email"]:focus {
  border: 1.5px solid #45f3ff;
} */

.inputBox span {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #aaa;
  font-size: 1em;
  pointer-events: none;
  transition: 0.3s;
}

/* .inputBox input:focus ~ span,
.inputBox input:valid ~ span {
  top: -10px;
  left: 8px;
  font-size: 0.85em;
  color: #45f3ff;
  background: #23242a;
  padding: 0 4px;
} */


.inputBox input[type="password"] {
  width: 100%;
  padding: 14px 12px 14px 12px;
  background: #2c2f36;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: border 0.3s;
}

/* .inputBox input[type="password"]:focus {
  border: 1.5px solid #45f3ff;
} */

.inputBox span {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #aaa;
  font-size: 1em;
  pointer-events: none;
  transition: 0.3s;
}

/* .inputBox input:focus ~ span,
.inputBox input:valid ~ span {
  top: -10px;
  left: 8px;
  font-size: 0.85em;
  color: #45f3ff;
  background: #23242a;
  padding: 0 4px;
} */

#submit {
  width: 100%;
  padding: 12px 0;
  background: #45f3ff;
  color: #23242a;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

#submit:hover {
  background: #1cb5e0;
  color: #fff;
}
