.signup-container{
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 300px;
  gap: 4px;
}

.signup-form{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 300px;
  gap: 4px;
}

.username-label, .password-label, .email-label{
  align-self: center;
  font-size: 16pt;
  font-weight: bold;
  margin-bottom: 10px;
}

.username-input, .password-input, .email-input{
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #1f2833;
  border: none;
  color: #c5c6c7;
}

/* Password Strength Meter */
.password-strength-meter {
  margin-top: 4px;
  margin-bottom: 4px;
  height: 4px;
  background-color: #1f2833;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength-label {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #888;
  min-height: 16px;
}

.password-requirements {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
}

.password-requirements ul {
  margin: 4px 0;
  padding-left: 20px;
  list-style-type: none;
}

.password-requirements li {
  margin: 2px 0;
  position: relative;
  padding-left: 20px;
}

.password-requirements li:before {
  content: "○";
  position: absolute;
  left: 0;
  color: #888;
}

.password-requirements li.valid {
  color: #6bcf7f;
}

.password-requirements li.valid:before {
  content: "✓";
  color: #6bcf7f;
}

.password-requirements li.invalid {
  color: #888;
}

.submit{
  margin-top: 10px;
  padding: 10px;
  background-color: #66fcf1;
  border-radius: 5px;
  border: none;
}

.submit:hover
{
  background-color: #45a29e;
  cursor: pointer;
}

.login {
  align-self: center;
  margin:5px
}

a {
  text-decoration: none;
}

a:hover{
 color: #45a29e; 
}

.signup-container a{
  color: #66fcf1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #1f2833;
  border: 2px solid #45a29e;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #45a29e;
}

.modal-header.success {
  background-color: rgba(102, 252, 241, 0.1);
  border-bottom-color: #66fcf1;
}

.modal-header.error {
  background-color: rgba(255, 0, 0, 0.1);
  border-bottom-color: #ff4444;
}

.modal-header h2 {
  margin: 0;
  color: #c5c6c7;
  font-size: 24px;
}

.modal-header.success h2 {
  color: #66fcf1;
}

.modal-header.error h2 {
  color: #ff6666;
}

.modal-body {
  padding: 20px;
  color: #c5c6c7;
  text-align: center;
  line-height: 1.6;
}

.modal-body p {
  margin: 0;
  font-size: 16px;
}

.modal-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #45a29e;
}

.modal-btn {
  padding: 10px 24px;
  background-color: #66fcf1;
  border: none;
  border-radius: 5px;
  color: #0b0c10;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.modal-btn:hover {
  background-color: #45a29e;
  color: #c5c6c7;
}

/* Light mode styles */
body.light-mode .username-label,
body.light-mode .password-label,
body.light-mode .email-label {
  color: var(--text-primary, #333333);
}

body.light-mode .username-input,
body.light-mode .password-input,
body.light-mode .email-input {
  background-color: var(--bg-primary, #ffffff);
  border: 1px solid var(--border-color, #45a29e);
  color: var(--text-primary, #333333);
}

body.light-mode .username-input:focus,
body.light-mode .password-input:focus,
body.light-mode .email-input:focus {
  border-color: var(--text-accent, #2c7873);
  background-color: #f8f8f8;
  box-shadow: 0 0 0 3px rgba(69, 162, 158, 0.1);
  outline: none;
}

body.light-mode .password-strength-meter {
  background-color: #e0e0e0;
}

body.light-mode .password-strength-label {
  color: var(--text-primary, #333333);
}

body.light-mode .password-requirements {
  color: var(--text-primary, #333333);
}

body.light-mode .password-requirements li.invalid {
  color: #888;
}

body.light-mode .password-requirements li.valid {
  color: #4caf50;
}

body.light-mode .submit {
  background-color: var(--text-accent, #45a29e);
  color: var(--bg-primary, #ffffff);
}

body.light-mode .submit:hover {
  background-color: var(--text-secondary, #2c7873);
  color: var(--bg-primary, #ffffff);
}

body.light-mode .signup-container a {
  color: var(--text-accent, #2c7873);
}

body.light-mode .signup-container a:hover {
  color: var(--text-secondary, #2c7873);
}

body.light-mode .login {
  color: var(--text-primary, #333333);
}

/* Light mode for modals */
body.light-mode .modal {
  background-color: rgba(0, 0, 0, 0.5);
}

body.light-mode .modal-content {
  background-color: var(--bg-primary, #ffffff);
  border-color: var(--border-color, #45a29e);
}

body.light-mode .modal-header {
  border-bottom-color: var(--border-color, #45a29e);
}

body.light-mode .modal-header.success {
  background-color: rgba(69, 162, 158, 0.1);
  border-bottom-color: var(--text-accent, #45a29e);
}

body.light-mode .modal-header.error {
  background-color: rgba(255, 0, 0, 0.1);
  border-bottom-color: #ff4444;
}

body.light-mode .modal-header h2 {
  color: var(--text-primary, #333333);
}

body.light-mode .modal-header.success h2 {
  color: var(--text-accent, #2c7873);
}

body.light-mode .modal-header.error h2 {
  color: #dc3545;
}

body.light-mode .modal-body {
  color: var(--text-primary, #333333);
}

body.light-mode .modal-footer {
  border-top-color: var(--border-color, #45a29e);
}

body.light-mode .modal-btn {
  background-color: var(--text-accent, #45a29e);
  color: var(--bg-primary, #ffffff);
}

body.light-mode .modal-btn:hover {
  background-color: var(--text-secondary, #2c7873);
  color: var(--bg-primary, #ffffff);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .signup-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
  }
  
  .username-label,
  .password-label,
  .email-label {
    font-size: 18px;
  }
  
  .username-input,
  .password-input,
  .email-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  .submit {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .modal-content {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .signup-container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .username-label,
  .password-label,
  .email-label {
    font-size: 16px;
  }
  
  .username-input,
  .password-input,
  .email-input {
    padding: 10px;
    font-size: 16px;
  }
  
  .submit {
    width: 100%;
    padding: 12px;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
    font-size: 14px;
  }
}