/* register.css - styled to match quiz theme with dark/light mode support */
@import url('https://fonts.googleapis.com/css2?family=Nova+Square&display=swap');

body {
  background-color: var(--bg-color);
  font-family: 'Nova Square', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.reg-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  max-width: 500px;
  margin: 170px auto;
  padding: 50px;
  background-color: rgba(46, 46, 46, 0.7);
  border-radius: 10px;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 20px rgba(31, 195, 151, 0.2);
}

:root.light-mode .reg-container {
  background-color: rgba(240, 240, 240, 0.7);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 3rem;
  color: var(--primary-color);
}

input {
  width: 300px;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background-color: rgba(68, 68, 68, 0.8);
  color: var(--text-color);
  font-size: 1.4rem;
  transition: background-color 0.3s ease;
}

:root.light-mode input {
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
}

input::placeholder {
  color: #bbb;
}

:root.light-mode input::placeholder {
  color: #777;
}

.btn {
  width: 100%;
  padding: 8px;
  margin-left: 50px;
  margin-top: 15px;
  background-color: var(--primary-color);
  border: none;
  color: var(--bg-color);
  border-radius: 2px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  background-color: #17a17c;
}

.error-message {
  background-color: rgba(255, 76, 76, 0.2);
  color: #ff6666;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

p {
  text-align: center;
  font-size: 1.3rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Media Queries for Mobile Devices */
@media screen and (max-width: 768px) {
  .reg-container {
    max-width: 90%;
    margin: 120px auto;
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  input {
    width: 100%;
    font-size: 1.2rem;
  }
  
  .btn {
    margin-left: 0;
    width: 100%;
    font-size: 1.4rem;
  }
  
  p {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .reg-container {
    margin: 130px auto;
    padding: 20px 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
}
