:root {
  --clr-primary: #7380ec;
  --clr-danger: #ff7782;
  --clr-success: #41f1b6;
  --clr-dark: #363949;
  --clr-light: rgba(132, 139, 200, 0.18);
  --clr-background: #f6f6f9;

  --border-radius: 0.5rem;
  --padding: 0.75rem 1rem;
  --box-shadow: 0 4px 10px var(--clr-light);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--clr-background);
  color: var(--clr-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Card box */
.form-box {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

/* Heading */
h2 {
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
  font-size: 1.8rem;
  text-align: center;
  font-weight: 600;
}

/* Input fields */
.input_fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input_fields input {
  padding: var(--padding);
  border: 1px solid var(--clr-light);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input_fields input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px rgba(115, 128, 236, 0.3);
}

/* Button */
button {
  width: 100%;
  padding: var(--padding);
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--clr-primary);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background-color: var(--clr-dark);
  transform: translateY(-2px);
}

/* Back link */
.back-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Error message */
.error-message {
  padding: 12px;
  background: #f8d7da;
  border-radius: 6px;
  font-size: 15px;
  color: #a42834;
  text-align: center;
  margin-bottom: 20px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
