:root {
  --primary-purple: #a78bfa;
  --secondary-purple: #c084fc;
  --accent-pink: #db2777;
  --dark-bg: #0f0f23;
  --card-bg: #1a1a2e;
  /* corregido */
  --gray-950: #030712;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: "Work Sans", system-ui;
  min-height: 100vh;
  position: relative;
}

main {
  position: relative;
  padding: 1.2rem;
  /* 1.5 → 1.2 */
  display: grid;
  place-items: center;
  min-height: calc(100vh - 96px);
  /* 120px → 96px */
}

/* Header */
header {
  padding: 1.2rem;
  /* 1.5 → 1.2 */
  border-bottom: 1.6px solid #6b21a8;
  /* 2px → 1.6px */
  box-shadow: 0 3.2px 4.8px -0.8px rgba(139, 92, 246, 0.3);
  /* 0 4 6 -1 */
}

.container {
  max-width: 960px;
  /* 1200 → 960 */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Register container */
.register-container {
  background-color: #111827;
  padding: 2rem;
  /* 2.5 → 2 */
  border-radius: 0.6rem;
  /* 0.75 → 0.6 */
  box-shadow:
    0 20px 40px -9.6px rgba(0, 0, 0, 0.25),
    /* 0 25 50 -12 */
    0 0 16px rgba(139, 92, 246, 0.3);
  /* 20 → 16 */
  border: 1.6px solid #6b21a8;
  /* 2px → 1.6px */
  width: 100%;
  max-width: 22.4rem;
  /* 28 → 22.4 */
  position: relative;
  z-index: 10;
  transition: all 0.5s ease;
}

.hero-container {
  position: relative;
  background: radial-gradient(ellipse at center, #a78bfa1a 0%, transparent 70%);
}

.register-container:hover {
  box-shadow:
    0 20px 40px -9.6px rgba(0, 0, 0, 0.25),
    0 0 24px #8b5cf6b3;
  /* 30 → 24 */
}

.register-title {
  font-family: "Work Sans", system-ui;
  font-size: 2.4rem;
  /* 3 → 2.4 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  /* 2.5 → 2 */
  color: #c084fc;
  letter-spacing: 0.05em;
  cursor: default;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  /* 1.5 → 1.2 */
}

.form-group {
  display: flex;
  flex-direction: column;
  font-family: "Jetbrains Mono", system-ui;
}

.form-group label {
  display: block;
  color: #9ca3af;
  font-size: 0.9rem;
  /* 1.125 → 0.9 */
  font-weight: bold;
  margin-bottom: 0.6rem;
  /* 0.75 → 0.6 */
}

.form-input {
  font-family: "Jetbrains Mono", system-ui;
  box-shadow:
    inset 0 1.6px 3.2px 0 rgba(0, 0, 0, 0.06),
    /* 0 2 4 0 */
    0 0 0 rgba(167, 139, 250, 0);
  appearance: none;
  border: 1px solid #374151;
  border-radius: 0.4rem;
  /* 0.5 → 0.4 */
  width: 100%;
  padding: 0.8rem 1rem;
  /* 1 1.25 → 0.8 1 */
  background-color: #1f2937;
  color: #e5e7eb;
  font-size: 0.96rem;
  /* 1.2 → 0.96 */
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  box-shadow:
    inset 0 1.6px 3.2px 0 rgba(0, 0, 0, 0.06),
    /* 0 2 4 0 */
    0 0 6.4px rgba(167, 139, 250, 0.6),
    /* 8 → 6.4 */
    0 0 0 1.6px #8b5cf6;
  /* 2 → 1.6 */
  border-color: #a78bfa;
}

.form-input::placeholder {
  color: #6b7280;
}

/* Password strength meter */
.strength-meter {
  margin-top: 0.4rem;
}

/* 0.5 → 0.4 */

.strength-bar {
  width: 100%;
  height: 3.2px;
  /* 4 → 3.2 */
  background-color: #374151;
  border-radius: 1.6px;
  /* 2 → 1.6 */
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
  transition: width 0.3s ease;
  border-radius: 1.6px;
  /* 2 → 1.6 */
}

.strength-text {
  font-size: 0.6rem;
  color: #6b7280;
  margin-top: 0.2rem;
  /* 0.25 → 0.2 */
  cursor: default;
}

/* Register button */
.register-btn {
  margin-top: 8px;
  font-family: "Work Sans", system-ui;
  background-color: #7c3aed;
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  width: 100%;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background-color: #6d28d9;
  box-shadow:
    0 20px 40px -9.6px rgba(0, 0, 0, 0.25),
    0 0 24px #8b5cf6b3;
}

.register-btn:active {
  transform: scale(0.8);
}

/* Message */
.message {
  text-align: center;
  font-size: 0.7rem;
  min-height: 1rem;
}

.message.success {
  color: #10b981;
}

.message.error {
  color: #ef4444;
}

/* Login link */
.login-link {
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: default;
}

.login-link a {
  color: #c084fc;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.login-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.6px;
  background-color: #8b5cf6;
  transition: all 0.3s ease;
}

.login-link a:hover {
  color: #d8b4fe;
}

.login-link a:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 640px) {
  .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  main {
    padding: 0.8rem;
  }

  /* 1 → 0.8 */

  .register-container {
    padding: 1.6rem 1.2rem;
    margin: 0.8rem;
  }

  /* 2 1.5 / 1 */

  .register-title {
    font-size: 2rem;
    margin-bottom: 1.6rem;
  }

  /* 2.5 / 2 */

  .form-group label {
    font-size: 0.8rem;
  }

  /* 1 → 0.8 */

  .form-input {
    padding: 0.7rem 0.8rem;
  }

  /* .875 1 → .7 .8 */

  .register-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  /* .875 1.5 / 1.125 */
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem;
  }

  /* 1 → 0.8 */
  .logo {
    font-size: 1.2rem;
  }

  /* 1.5 → 1.2 */
  .nav-links {
    font-size: 0.8rem;
  }

  /* 1 → 0.8 */
  .register-container {
    padding: 1.2rem;
  }

  /* 1.5 → 1.2 */
  .register-title {
    font-size: 1.6rem;
  }

  /* 2 → 1.6 */
}