:root {
  --primary-purple: #a78bfa;
  --secondary-purple: #c084fc;
  --accent-pink: #db2777;
  --dark-bg: #0f0f23;
  --card-bg: #1a1a2e;
  --border-glow: rgba(167, 139, 250, 0.6);
  --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 content */
main {
  margin-top: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 96px);
  /* 120px → 96px */
}

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

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

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

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

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

/* 1.5rem → 1.2rem */

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

.form-group label {
  display: block;
  color: #9ca3af;
  font-size: .96rem;
  /* 1.2rem → .96rem */
  font-weight: bold;
  margin-bottom: .6rem;
  /* .75rem → .6rem */
}

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

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

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

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

.login-btn:hover {
  background-color: #6d28d9;
  box-shadow:
    0 20px 40px -9.6px rgba(0, 0, 0, .25),
    0 0 24px #8b5cf6b3;
  /* 30px → 24px */
}

.login-btn:active {
  transform: scale(.8);
}

.message {
  text-align: center;
  font-size: .7rem;
  /* .875rem → .7rem */
  min-height: 1rem;
  /* 1.25rem → 1rem */
}

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

.message.error {
  color: #ef4444;
}

.message.info {
  color: #3b82f6;
}

/* Register link */
.register-link {
  text-align: center;
  color: #9ca3af;
  font-size: .8rem;
  /* 1rem → .8rem */
  cursor: default;
}

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

.register-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.6px;
  /* 2px → 1.6px */
  background-color: #8b5cf6;
  transition: all .3s ease;
}

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

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

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

  /* 1rem → .8rem */
  .nav-links {
    gap: .8rem;
  }

  /* 1rem → .8rem */
  main {
    padding: .8rem;
  }

  /* 1rem → .8rem */
  .login-container {
    padding: 1.6rem 1.2rem;
    margin: .8rem;
  }

  /* 2rem 1.5rem / 1rem */
  .login-title {
    font-size: 2rem;
    margin-bottom: 1.6rem;
  }

  /* 2.5rem/2rem */
  .form-group label {
    font-size: .8rem;
  }

  /* 1rem → .8rem */
  .form-input {
    padding: .7rem .8rem;
  }

  /* .875rem 1rem */
  .login-btn {
    padding: .7rem 1.2rem;
    font-size: .9rem;
  }

  /* .875rem 1.5rem / 1.125rem */
}

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

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

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

  /* 1rem → .8rem */
  .login-container {
    padding: 1.2rem;
  }

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

  /* 2rem → 1.6rem */
}

.remember-row {
  margin-top: .25rem;
}

.remember {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: #9ca3af;
  font-family: "JetBrains Mono", system-ui;
}

.remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #7c3aed;
}