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

body, html {
  height: 100%;
  overflow: hidden;
}

#main-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
  filter: brightness(0.3);
}

.form-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: 100px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
  border: 4px solid transparent;
  background: linear-gradient(black, black) padding-box,
              linear-gradient(45deg, red, orange, yellow, green, cyan, blue, violet) border-box;
}

#form-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.25;
}

.form-content {
  position: relative;
  padding: 30px 20px;
  z-index: 1;
  text-align: center;
  color: white;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid white;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

form textarea {
  resize: none;
  height: 100px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #00d084;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #00b36b;
}

#loading, #success, #error {
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  animation: fadeIn 0.3s ease-in-out;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}