/* Gwynant Authentication Gateway Styles */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f5f5f5;
}

.container,
.login-container,
.error-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  h1:first-child {
    margin-top: 0;
    text-align: center;
  }
}

h1 {
  color: #333;
}

.welcome-message {
  color: #0078d4;
  font-size: 18px;
  margin-bottom: 20px;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
}

.user-info {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.user-info p {
  margin: 8px 0;
  color: #333;
}

.user-info strong {
  color: #666;
}

.section {
  margin-bottom: 30px;
}

.section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #0078d4;
  padding-bottom: 8px;
}

.app-link {
  display: block;
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.app-link:hover {
  background-color: #0078d4;
  color: white;
  border-color: #0078d4;
}

.debug-link {
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.debug-link:hover {
  color: #0078d4;
  text-decoration: underline;
}

/* Form Elements */
label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

select,
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

input[type="text"] {
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background-color: #005a9e;
}

/* Login button */
.login {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

/* Logout buttons */
.logout {
  margin-top: 30px;
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.logout a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  max-width: 200px;
}

.logout-session {
  background-color: white;
  color: #666;
  border: 1px solid #ddd;
}

.logout-session:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.logout a:not(.logout-session) {
  background-color: #d13438;
  color: white;
  border: 1px solid #d13438;
}

.logout a:not(.logout-session):hover {
  background-color: #a52a2e;
  border-color: #a52a2e;
}

/* Cancel link */
.cancel {
  margin-top: 15px;
  text-align: center;
}

.cancel a {
  color: #666;
  text-decoration: none;
}

.cancel a:hover {
  text-decoration: underline;
}

/* Error messages */
.error-message {
  color: #333;
  margin-bottom: 30px;
  padding: 15px;
  background-color: #fef0f0;
  border-left: 4px solid #d13438;
  border-radius: 4px;
}

.error-container h1 {
  color: #d13438;
  margin-bottom: 20px;
}

.error-container a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0078d4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.error-container a:hover {
  background-color: #005a9e;
}

/* Simple page styles */
.simple-page {
  max-width: 500px;
  text-align: center;
}

.simple-page p {
  color: #666;
  margin-bottom: 20px;
}

.simple-page a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0078d4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.simple-page a:hover {
  background-color: #005a9e;
}

/* Status messages */
.status-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.status-error {
  background-color: #fef0f0;
  border-left: 4px solid #d13438;
  color: #d13438;
}

.status-info {
  background-color: #e3f2fd;
  border-left: 4px solid #0078d4;
  color: #0078d4;
}
