/* FraudShield Login Theme - Matching webapp design tokens */
/* White background with centered card containing dark blue header */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --fs-background: #f5f5f5;
  --fs-card: #ffffff;
  --fs-foreground: #1a1a1a;
  --fs-primary: #3b5998;
  --fs-primary-hover: #2d4373;
  --fs-primary-foreground: #ffffff;
  --fs-border: #e5e5e5;
  --fs-radius: 0.625rem;
  --fs-sidebar: #1e3a5f;
  --fs-sidebar-foreground: #f5f5f5;
  --fs-sidebar-border: #2d4a6f;
  --fs-muted-foreground: #737373;
  --fs-destructive: #dc2626;
}

/* ===== PAGE BACKGROUND ===== */
.pf-v5-c-login,
body {
  background-color: #ffffff !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  min-height: 100vh !important;
}

/* ===== CENTERED CARD CONTAINER ===== */
.pf-v5-c-login__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 2rem 1rem !important;
  max-width: 100% !important;
  width: 100% !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
}

/* ===== CARD WRAPPER ===== */
/* Make header and main look like one card */
.pf-v5-c-login__header,
.pf-v5-c-login__main {
  width: 100% !important;
  max-width: 35rem !important;
  margin: 0 !important;
  grid-area: unset !important;
  box-sizing: border-box !important;
}

/* ===== DARK BLUE HEADER (TOP OF CARD) ===== */
.pf-v5-c-login__header,
#kc-header {
  background-color: var(--fs-sidebar) !important;
  padding: 0rem 2rem !important;
  border-radius: var(--fs-radius) var(--fs-radius) 0 0 !important;
  border: 1px solid var(--fs-sidebar-border) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Header wrapper - contains logos */
#kc-header-wrapper,
.pf-v5-c-login__header .pf-v5-c-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  /* Hide text */
  font-size: 0 !important;
  color: transparent !important;
}

/* Logo icon */
#kc-header-wrapper::before,
.pf-v5-c-login__header .pf-v5-c-brand::before {
  content: '' !important;
  display: block !important;
  width: 200px !important;
  height: 80px !important;
  background-image: url('../img/logo_neg_top.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
}

/* Title image */
#kc-header-wrapper::after,
.pf-v5-c-login__header .pf-v5-c-brand::after {
  content: '' !important;
  display: none !important;
}

/* ===== WHITE FORM AREA (BOTTOM OF CARD) ===== */
.pf-v5-c-login__main {
  background-color: var(--fs-card) !important;
  border: 1px solid var(--fs-border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--fs-radius) var(--fs-radius) !important;
  padding: 2rem !important;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
  align-self:center !important;
}

/* ===== PAGE TITLE ===== */
.pf-v5-c-login__main-header {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}

.pf-v5-c-login__main-header .pf-v5-c-title {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--fs-foreground) !important;
  letter-spacing: -0.025em !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* ===== FORM BODY ===== */
.pf-v5-c-login__main-body {
  width: 100% !important;
}

/* ===== FORM STYLING ===== */
.pf-v5-c-form {
  font-family: 'Inter', system-ui, sans-serif !important;
}

.pf-v5-c-form__group {
  margin-bottom: 1rem !important;
}

.pf-v5-c-form__label-text {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--fs-foreground) !important;
}

/* Input fields */
.pf-v5-c-form-control {
  border-radius: 0.375rem !important;
}

.pf-v5-c-form-control > input,
.pf-v5-c-form-control > textarea,
.pf-v5-c-form-control > select {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  border: 1px solid var(--fs-border) !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  background-color: var(--fs-card) !important;
  color: var(--fs-foreground) !important;
  height: 2.5rem !important;
}

.pf-v5-c-form-control > input:focus {
  outline: none !important;
  border-color: var(--fs-primary) !important;
  box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.2) !important;
}

.pf-v5-c-form-control > input::placeholder {
  color: var(--fs-muted-foreground) !important;
}
.kc-tooltip-text{
  display:none;
}
/* ===== BUTTONS ===== */
.pf-v5-c-button.pf-m-primary {
  background-color: var(--fs-primary) !important;
  color: var(--fs-primary-foreground) !important;
  border: none !important;
  border-radius: 0.375rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.625rem 1rem !important;
  transition: background-color 150ms ease !important;
  width: 100% !important;
}

.pf-v5-c-button.pf-m-primary:hover {
  background-color: var(--fs-primary-hover) !important;
}

.pf-v5-c-button.pf-m-primary:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--fs-card), 0 0 0 4px var(--fs-primary) !important;
}

.pf-v5-c-button.pf-m-link {
  color: var(--fs-primary) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.pf-v5-c-button.pf-m-link:hover {
  color: var(--fs-primary-hover) !important;
  text-decoration: underline !important;
}

/* ===== LINKS ===== */
.pf-v5-c-login a {
  color: var(--fs-primary) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.pf-v5-c-login a:hover {
  color: var(--fs-primary-hover) !important;
  text-decoration: underline !important;
}

/* ===== FOOTER ===== */
.pf-v5-c-login__main-footer {
  width: 100% !important;
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--fs-border) !important;
  font-size: 0.875rem !important;
  color: var(--fs-muted-foreground) !important;
  text-align: center !important;
  display: none;
}

/* ===== ALERTS ===== */
.pf-v5-c-alert {
  border-radius: 0.375rem !important;
  margin-bottom: 1rem !important;
}

.pf-v5-c-alert.pf-m-danger {
  background-color: #fef2f2 !important;
  border: 1px solid var(--fs-destructive) !important;
}

.pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__title {
  color: var(--fs-destructive) !important;
}

.pf-v5-c-alert.pf-m-success {
  background-color: #f0fdf4 !important;
  border: 1px solid #22c55e !important;
}

.pf-v5-c-alert.pf-m-warning {
  background-color: #fffbeb !important;
  border: 1px solid #f59e0b !important;
}

.pf-v5-c-alert.pf-m-info {
  background-color: #eff6ff !important;
  border: 1px solid var(--fs-primary) !important;
}

/* ===== CHECKBOX/RADIO ===== */
.pf-v5-c-check__input,
.pf-v5-c-radio__input {
  accent-color: var(--fs-primary) !important;
}

/* ===== REQUIRED INDICATOR ===== */
.pf-v5-c-form__label-required {
  color: var(--fs-destructive) !important;
}

/* ===== DARK MODE ===== */
.pf-v5-theme-dark {
  --fs-background: #1a1a1a;
  --fs-card: #262626;
  --fs-foreground: #f5f5f5;
  --fs-border: rgba(255, 255, 255, 0.1);
}

.pf-v5-theme-dark .pf-v5-c-login,
.pf-v5-theme-dark body {
  background-color: var(--fs-background) !important;
}

.pf-v5-theme-dark .pf-v5-c-login__main {
  background-color: var(--fs-card) !important;
  border-color: var(--fs-border) !important;
}

.pf-v5-theme-dark .pf-v5-c-form-control > input {
  background-color: #1a1a1a !important;
  border-color: var(--fs-border) !important;
  color: var(--fs-foreground) !important;
}

.pf-v5-theme-dark .pf-v5-c-login__main-header .pf-v5-c-title,
.pf-v5-theme-dark .pf-v5-c-form__label-text {
  color: var(--fs-foreground) !important;
}

.pf-v5-theme-dark .pf-v5-c-login__main-footer {
  border-top-color: var(--fs-border) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .pf-v5-c-login__container {
    padding: 1rem !important;
  }

  .pf-v5-c-login__header,
  .pf-v5-c-login__main {
    max-width: 100% !important;
  }

  .pf-v5-c-login__header {
    padding: 1rem !important;
  }

  .pf-v5-c-login__main {
    padding: 1.5rem !important;
  }

  #kc-header-wrapper::after {
    width: 150px !important;
  }
}
