/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 420px;
}

/* Form Box */
.form-box {
  background: #1f2937;
  padding: 3rem 2.5rem; /* increased padding */
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* increased gap between elements */
  transition: transform 0.3s ease;
}

.form-box:hover {
  transform: translateY(-5px);
}

/* Form Title */
.form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem; /* more space below title */
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Input Fields */
.input-field {
  width: 100%;
  padding: 1rem 1.2rem; /* increased padding */
  border: 2px solid transparent;
  border-radius: 14px;
  background: #374151;
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.input-field:focus {
  border-color: #22c55e;
  outline: none;
  background: #4b5563;
}

/* Error Messages */
.error {
  color: #f87171;
  font-size: 0.85rem;
  min-height: 1rem;
  margin-top: 0.25rem; /* slight spacing below input */
}

/* Buttons */
.btn {
  width: 100%;
  padding: 1rem; /* slightly taller button */
  border: none;
  border-radius: 14px;
  background: #22c55e;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem; /* spacing above button */
}

.btn:hover {
  background: #16a34a;
  transform: translateY(-2px) scale(1.02);
}

/* Links */
.links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem; /* spacing above links */
}

.link-btn, .links a {
  background: none;
  border: none;
  color: #60a5fa;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.link-btn:hover, .links a:hover {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
  .form-box {
    padding: 2.5rem 2rem;
  }

  .form-title {
    font-size: 1.8rem;
  }

  .input-field, .btn {
    font-size: 0.95rem;
  }
}
