body {
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

a {
  text-decoration: none;
}
.card {
  width: 300px;
  text-align: center;
}
.card__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card__logo img {
  width: 100px;
  height: 100px;
}
.card__logo__background {
  background-color: #000;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  width: 120px;
}
.card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}
.card-description {
  color: #6b7280;
  margin-bottom: 24px;
}
/* Login-specific button overrides */
/* Provider-specific overrides */
.button {
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
  padding: 10px 16px;
  width: 100%;
  transition: opacity 0.3s;
  box-sizing: border-box;
}

.button:hover {
  opacity: 0.9;
}
.button img {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.button.loading {
  position: relative;
  opacity: 0.8;
  cursor: wait;
}

.loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

.discord {
  background-color: #5865f2;
}
.siwe {
  background-color: #f6851b;
}
.telegram {
  background-color: #0088cc;
}

.twitter {
  background-color: #000;
}

.auth-errors {
  background-color: #ff6961;
  color: #450a0a;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 12px;
  /* Add this if you want the error message to span the full width */
  width: 100%;
}

/* (The CSS from above goes here) */
.alert-box {
  background-color: #fce7f3;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  position: relative;
}

.alert-title {
  font-weight: bold;
}

.alert-message {
  display: block;
}

@media (min-width: 640px) {
  .alert-message {
    display: inline;
  }
}

.close-button {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button svg {
  fill: #ef4444;
  height: 1.5rem;
  width: 1.5rem;
  cursor: pointer;
}

/* disabled */
siwe-login-button,
ronin-login-button {
  display: none;
}

.wallet-login-section {
  margin-bottom: 20px;
  text-align: center;
}

.wallet-login-section .button-base.wallet-login {
  background-color: #627eea;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.wallet-login-section .button-base.wallet-login:hover {
  opacity: 0.9;
}

.wallet-login-section .button-base.wallet-login img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.wallet-login-hint {
  color: #6b7280;
  font-size: 14px;
  margin-top: 8px;
}

.return-to-app {
  margin-top: 16px;
}

.return-to-app .button-base.secondary {
  background-color: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 14px;
}

.return-to-app .button-base.secondary:hover {
  background-color: #f3f4f6;
}

.return-to-app img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
