:root {
  --bg-dark: #121212;
  --primary: #bb86fc;
  --primary-50: #5e437e;
  --primary-100: #9662d4c9;
  --accent: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #757575;
  --radius: 6px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

html {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(-45deg, --bg-dark, --primary, --primary-50, --bg-dark);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

.wrapper {
  padding: 2rem;
  min-height: 100vh;
  display: grid;
  grid-template-rows: min-content 1fr min-content;
}

header {
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

main {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.content {
  max-width: 720px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero p {
  text-align: center;
}

h1 {
  font-weight: 700;
  font-size: 2.25rem;
  background-image: linear-gradient(90deg, rgba(150, 107, 202, 1) 0%, rgba(201, 158, 253, 1) 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  gap: 1rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 6) Label & input stacked */
form label,
.label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--text-secondary);
}

form input {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

form input::placeholder {
  color: var(--text-secondary);
}

form input:focus {
  outline: none;
  border-color: var(--primary);
}

button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary-100);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

button:hover,
button:focus {
  transform: translateY(-1px);
  outline: none;
}

footer {
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--primary);
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}