/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

/* Background */
.background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  z-index: -1;
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Form */
form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: fadeIn 1.2s ease-in;
  color: white;
}

/* Heading */
form h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #fff;
  font-weight: 500;
}

/* Input Wrapper */
.formdesign {
  position: relative;
  margin-bottom: 25px;
}

.formdesign i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #ccc;
}

.formdesign input {
  width: 100%;
  padding: 14px 14px 14px 38px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 16px;
  transition: 0.3s;
  outline: none;
}

.formdesign input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 5px #aaa;
}

.formdesign label {
  position: absolute;
  left: 38px;
  top: 14px;
  font-size: 14px;
  color: #eee;
  pointer-events: none;
  transition: 0.3s ease;
}

.formdesign input:focus ~ label,
.formdesign input:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 35px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 0 4px;
  border-radius: 4px;
}

/* Error Styling */
.formerror {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 5px;
  display: block;
  height: 16px;
}

/* Button */
.button {
  width: 100%;
  padding: 14px;
  background: white;
  color: #5c2fdd;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.button:hover {
  background: #eee;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media screen and (max-width: 480px) {
  form {
    padding: 25px;
  }
}
