/* Authentication Styles for TS-Docs */

.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, hsl(225 6.6667% 23.5294%) 0%, hsl(210.0000 5.7692% 40.7843%) 100%);
}

.loading-content {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 400px;
}

.loading-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid hsl(225 6.6667% 23.5294%);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

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

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, hsl(225 6.6667% 23.5294%) 0%, hsl(210.0000 5.7692% 40.7843%) 100%);
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-form h2 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.login-form p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: hsl(225 6.6667% 23.5294%);
  box-shadow: 0 0 0 2px hsl(225 6.6667% 23.5294% / 0.2);
}

.login-form button {
  width: 100%;
  padding: 12px;
  background: hsl(225 6.6667% 23.5294%);
  color: hsl(0 0% 98.0392%);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-form button:hover {
  background: hsl(210 5.2632% 7.4510%);
}

.login-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.help-text {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.auth-gate {
  position: relative;
}

.user-info {
  position: fixed;
  top: 10px;
  right: 20px;
  background: white;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.user-info button {
  background: hsl(225 6.6667% 23.5294%);
  color: hsl(0 0% 98.0392%);
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease;
}

.user-info button:hover {
  background: hsl(210 5.2632% 7.4510%);
}

.admin-badge {
  background: hsl(225 6.6667% 23.5294%);
  color: hsl(0 0% 98.0392%);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.access-denied {
  text-align: center;
  max-width: 400px;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.access-denied h2 {
  color: #dc3545;
  margin-bottom: 20px;
}

.access-denied p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.access-denied button {
  background: hsl(225 6.6667% 23.5294%);
  color: hsl(0 0% 98.0392%);
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.access-denied button:hover {
  background: hsl(210 5.2632% 7.4510%);
}

.admin-note {
  color: hsl(225 6.6667% 23.5294%) !important;
  font-weight: 500;
  margin-top: 10px;
  font-size: 13px;
} 