* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

#passwordChecklist p {
  margin: 3px 0;
  padding: 2px 6px;
  border-radius: 4px;
  transition: 0.3s;
}

.valid {
  color: green;
}

.invalid {
  color: red;
}

body {
  background: white;
  /*       display: flex; */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /*       padding: 20px; */
  overflow-x: hidden;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 150px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
  font-weight: 500;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 38px;
  cursor: pointer;
  color: #555;
}

.inline-feedback {
  font-size: 0.85rem;
  color: red;
  margin-top: 5px;
}

.btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #0d0d0d;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.btn:disabled {
  background-color: #999;
}

.spinner {
  display: none;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #f3f3f3;
  border-top: 3px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-page {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: black;
  text-decoration: none;
}

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.social-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.logo-container{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 12px;
  margin: 10px 2px;
}

#navbar-links{
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: space-between;
  white-space: nowrap;
  align-items: center;
}

/* Invalid checklist item */
.invalid {
  color: #dc3545; /* red text */
  background-color: #ffe5e5; /* light red background */
  border-left: 4px solid #dc3545; /* red indicator bar */
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Form Container */
form#signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form Group */
.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Labels */
label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
}

/* Toggle Password Eye */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  color: #555;
}

/* Password Checklist */
#passwordChecklist p {
  margin: 4px 0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.valid {
  color: #28a745;
  background-color: #e6f4ea;
  border-left: 4px solid #28a745;
}

.invalid {
  color: #dc3545;
  background-color: #ffe5e5;
  border-left: 4px solid #dc3545;
}

/* Inline Feedback */
.inline-feedback {
  font-size: 0.85rem;
  color: red;
  margin-top: 4px;
}

/* Checkbox */
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.form-group label[for="terms"] a {
  color: #007bff;
  text-decoration: none;
}

.form-group label[for="terms"] a:hover {
  text-decoration: underline;
}

/* Submit Button */
button.btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

/* Spinner */
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  margin: 10px auto;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Login Link */
.login-page {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  margin-top: 1rem;
}

.login-page a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.login-page a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .toggle-password {
    top: 34px;
  }
}