:root {
  --background-image: url('https://images4.alphacoders.com/131/1318501.jpeg');
}

body {
  background-color: #121212;
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #969696;
  animation: slideIn 0.5s forwards;
  text-shadow: 0 0 10px #969696, 0 0 20px #969696;
}

p {
  margin: 10px 0;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

p:nth-child(2) { animation-delay: 0.2s; }
p:nth-child(3) { animation-delay: 0.4s; }
p:nth-child(4) { animation-delay: 0.6s; }

.highlight {
  color: #969696;
  text-shadow: 0 0 10px #969696, 0 0 20px #969696;
}

.button-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.cta-button {
  background-color: #969696;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.cta-button#requestInvite { animation-delay: 0.8s; }
.cta-button#loginBtn { animation-delay: 1s; }

.cta-button:hover {
  box-shadow: 0 0 20px rgba(0, 108, 130, 0.5);
  transform: scale(1.05);
}

footer {
  background-color: rgba(26, 26, 26, 0.95);
  padding: 20px;
  text-align: center;
  font-size: 0.8em;
  opacity: 0;
  animation: fadeIn 0.5s forwards 1.2s;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
  z-index: 1000;
}

.modal--visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out;
}

.modal__content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal--visible .modal__content {
  transform: translateY(0);
  opacity: 1;
}

.modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5em;
  color: #969696;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 10px #969696, 0 0 20px #969696;
}

.modal__message {
  font-size: 1em;
  color: #ffffff;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: #969696;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.modal__close:hover {
  background: #004d5a;
}

body.modal-open {
  overflow: hidden;
}

/* Login Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 1em;
  color: #ffffff;
}

input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #969696;
  background-color: #1a1a1a;
  color: #ffffff;
}

input:focus {
  outline: none;
  border-color: #00a3c4;
}

#loadingBar {
  text-align: center;
  color: #969696;
  font-weight: bold;
  margin-top: 10px;
}

#loginMessage {
  text-align: center;
  color: #ff0000;
  margin-top: 10px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}