/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  animation: fadeIn 1s ease-in;
  color: #f0f0f0;
}

/* Container styling */
.container {
  background: rgba(28, 28, 28, 0.95);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  width: 420px;
  animation: slideUp 0.6s ease-out;
  backdrop-filter: blur(8px);
}

/* Title */
h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #ffffff;
  font-size: 1.8rem;
}

/* Form group */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #cccccc;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #1e1e1e;
  color: #f0f0f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: #00e676;
  box-shadow: 0 0 5px #00e676;
  outline: none;
}

/* Button */
button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(to right, #00e676, #00bcd4);
  color: #121212;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

button:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.02);
}

button:disabled {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

/* Checkbox styling */
.checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #aaaaaa;
}

.checkbox input {
  width: auto;
  margin-right: 8px;
}

/* Error styling */
.error-msg {
  color: #ff4d4f;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
}

input.error {
  border-color: #ff4d4f !important;
  animation: shake 0.3s ease;
}

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

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Media queries */
@media (max-width: 600px) {
  .container {
    width: 90%;
  }
}
