/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: bold;
  margin: 20px 0;
}

p {
  margin-bottom: 20px;
}

/* Header Styles */
header {
  background-color: #1f1f1f;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 24px;
  color: #6200ea;
  margin: 0;
}

header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #6200ea;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-btn {
  padding: 8px 16px;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-btn:hover {
  background-color: #3700b3;
}

/* Main Content Styles */
main {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

main h2 {
  color: #6200ea;
  margin-bottom: 30px;
}

main p {
  color: #cccccc;
  margin-bottom: 40px;
}

/* Form Styles */
form {
  background-color: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

input, textarea {
  width: 95%;
  padding: 12px;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 16px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6200ea;
  box-shadow: 0 0 5px #6200ea;
}

input[type="file"] {
  padding: 8px;
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #6200ea;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #3700b3;
  transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* Alert Messages */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: left;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Button States */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Footer Styles */
footer {
  background-color: #1f1f1f;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  color: #cccccc;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Auth Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.auth-modal-content {
  background-color: #1f1f1f;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #6200ea;
}

#authForm {
  margin-top: 20px;
}

#authTitle {
  color: #6200ea;
  margin-bottom: 20px;
  text-align: center;
}

#authSwitch {
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  color: #6200ea;
  text-decoration: underline;
}

#authSwitch:hover {
  color: #3700b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  header nav {
    flex-direction: column;
    align-items: flex-end;
  }

  .auth-buttons {
    margin-top: 10px;
  }

  form {
    padding: 15px;
  }

  input, textarea {
    width: 90%;
  }
}

