/* Orleu Theme for Keycloak - Bootstrap Integration */

:root {
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Layout */
.login-pf-page {
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-pf-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-brand img {
  max-height: 60px;
}

/* Card Styles */
.card-pf {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid #e5e7eb;
  margin: 0 auto;
  padding: 2rem;
}

/* Fixed width for login page cards to prevent jumping */
.login-pf-page .card-pf {
  min-width: 400px;
}

.card-pf-title {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #377dff;
  box-shadow: 0 0 0 0.2rem rgba(55, 125, 255, 0.25);
  outline: 0;
}

.form-label {
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
}

/* Button Styles */
.btn-primary {
  background-image: none !important;
}
/* .btn-primary {
  background-color: #377dff;
  border: 1px solid #377dff;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  width: 100%;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2c63d2;
  border-color: #2c63d2;
  transform: translateY(-1px);
}

.btn-secondary,
.btn-outline-secondary {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.15s ease-in-out;
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-outline-primary {
  background-color: transparent;
  border: 1px solid #377dff;
  color: #377dff;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.15s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: #377dff;
  border-color: #377dff;
  color: #ffffff;
} */

/* Alert Styles */
.alert {
  border-radius: 0.375rem;
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

/* Language Selector */
.kc-dropdown {
  position: relative;
}

.kc-dropdown-toggle {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.5rem;
  cursor: pointer;
}

.kc-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 120px;
  z-index: 1000;
}

.kc-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.kc-dropdown-item:hover {
  background: #f9fafb;
  color: #1f2937;
}

/* Footer */
.login-pf-footer {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .card-pf {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .login-pf-page .card-pf {
    width: calc(100% - 2rem);
    min-width: 280px;
    max-width: 400px;
  }
  
  .login-pf-brand img {
    max-height: 50px;
  }
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #377dff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom Keycloak specific styles */
.pf-c-alert {
  border-radius: 0.375rem;
  border: 1px solid transparent;
}

.pf-c-alert__icon {
  margin-right: 0.5rem;
}

.kc-form-group {
  margin-bottom: 1.5rem;
}

.kc-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.kc-form-header h1 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.kc-form-wrapper {
  padding: 0;
}

.kc-form-buttons {
  margin-top: 1.5rem;
}

.kc-form-buttons .btn {
  margin-bottom: 0.5rem;
}

.kc-info-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.kc-info-wrapper a {
  color: #377dff;
  text-decoration: none;
  font-size: 0.875rem;
}

.kc-info-wrapper a:hover {
  text-decoration: underline;
}

/* Username display */
.kc-username {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d1d5db;
}

.kc-username label {
  margin: 0;
  font-weight: 500;
  color: #1f2937;
}

.kc-reset-flow {
  color: #377dff;
  text-decoration: none;
  font-size: 0.875rem;
}

.kc-reset-flow:hover {
  text-decoration: underline;
}

/* Social providers */
.kc-social-providers {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d1d5db;
}

.kc-social-provider {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #374151;
  background: white;
  transition: all 0.15s ease;
}

.kc-social-provider:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1f2937;
} 
#kc-select-try-another-way-form {
  display: none !important;
}