/* ── VetSaw Login Theme ───────────────────────────────────────────────── */
/* Colour palette matches popupColors.ts                                    */
/*   POPUP_BG      #221c42   card body                                      */
/*   POPUP_BG_ALT  #1a1535   card header / inputs                           */
/*   BORDER_NEUTRAL #3d3268  borders                                         */
/*   Accent        #7c3aed   focus / button                                  */
/*   Text primary  #e2d9f3                                                   */
/*   Text muted    #7a6b9e                                                   */

/* Page */
html, body { height: 100%; margin: 0; padding: 0; }

body {
  background: #0e0b1c;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Kill the top nav header — logo lives inside the card */
#kc-header { display: none !important; }

/* Collapse Bootstrap grid so it doesn't span the full viewport */
.container-fluid,
.row {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  float: none !important;
}

[class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Card */
.card-pf {
  background: #221c42 !important;
  border: 1px solid #3d3268 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(124,58,237,0.10) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Logo area */
.login-pf-header {
  background: #1a1535 !important;
  border-bottom: 1px solid #3d3268 !important;
  padding: 32px 40px 24px !important;
  text-align: center !important;
}

.login-pf-header::before {
  content: '';
  display: block;
  width: 200px;
  height: 41px;
  margin: 0 auto 14px;
  background: url('../img/logo.png') center / contain no-repeat;
}

/* "Sign in to your account" */
#kc-page-title {
  color: #7a6b9e !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

/* Form body */
.card-pf-body {
  padding: 28px 40px 32px !important;
}

/* Labels */
label {
  color: #7a6b9e !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"] {
  background: #1a1535 !important;
  border: 1px solid #3d3268 !important;
  border-radius: 6px !important;
  color: #e2d9f3 !important;
  font-size: 14px !important;
  height: 42px !important;
  padding: 0 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.15s !important;
  -webkit-appearance: none !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18) !important;
}

/* Form groups */
.form-group {
  margin-bottom: 18px !important;
}

/* Sign In button */
#kc-login {
  background: #7c3aed !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  height: 42px !important;
  letter-spacing: 0.3px !important;
  margin-top: 8px !important;
  width: 100% !important;
  transition: background 0.15s !important;
}

#kc-login:hover  { background: #6d28d9 !important; }
#kc-login:active { background: #5b21b6 !important; }

/* Links */
a { color: #a78bfa !important; text-decoration: none !important; }
a:hover { color: #c4b5fd !important; text-decoration: underline !important; }

/* Remember me row */
#kc-form-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

#kc-form-options label {
  color: #7a6b9e !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#rememberMe { accent-color: #7c3aed; }

/* Error alert */
.alert-error {
  background: rgba(180,30,30,0.15) !important;
  border: 1px solid rgba(200,60,60,0.35) !important;
  border-radius: 6px !important;
  color: #f08080 !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  margin-bottom: 18px !important;
}

/* Footer */
#kc-info {
  color: #3d3268 !important;
  font-size: 11px !important;
  text-align: center !important;
  padding: 12px 40px !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0e0b1c; }
::-webkit-scrollbar-thumb { background: #3d3268; border-radius: 3px; }
