.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background-color: #242f39;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  position: relative;
  text-align: center;
  color: #dadada;
  font-family: Arial, sans-serif;
}

.modal:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #dadada;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: #a9cf54;
}

.modal-logo {
  margin-bottom: 1rem;
}

.modal-logo img {
  display: block;
  margin: 0 auto;
}

.modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #dadada;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #9ca3ab;
  margin-bottom: 1.5rem;
}

.auth-button {
  background-color: #a9cf54;
  color: #1d242d;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.auth-button:hover {
  background-color: #92a525;
}

@media (max-width: 640px) {
  .modal {
    padding: 1rem;
    max-height: calc(100dvh - 2rem);
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-text {
    font-size: 0.875rem;
  }

  .auth-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}
