/* Shared authentication styles for Azure AD SSO templates */

.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.login-message {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
}

/* Base button styles */
.auth-button {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

/* Primary button (Azure blue) */
.auth-button-primary {
  background: #005a9e;
  color: #dddddd !important;
}

.auth-button-primary:hover {
  background: #0078d4;
  color: white;
}

/* Secondary button (gray) */
.auth-button-secondary {
  background: #6c757d;
}

.auth-button-secondary:hover {
  background: #545b62;
  color: white;
}

/* Danger button (red) */
.auth-button-danger {
  background: #ba2121;
}

.auth-button-danger:hover {
  background: #a41515;
  color: white;
}

/* Loading spinner for social login redirect */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #0078d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error styles */
.errorlist {
  color: #ba2121;
  list-style: none;
  padding: 0;
}

.error-message {
  color: #ba2121;
  margin-bottom: 15px;
}

