/* Customer portal login — matches admin staff_login_styles.css */

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Regular.eot');
  src: url('../fonts/Metropolis-Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Metropolis-Regular.woff2') format('woff2'),
    url('../fonts/Metropolis-Regular.woff') format('woff'),
    url('../fonts/Metropolis-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/font-awesome/fontawesome-webfont.eot?v=4.7.0');
  src: url('../fonts/font-awesome/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
    url('../fonts/font-awesome/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
    url('../fonts/font-awesome/fontawesome-webfont.woff?v=4.7.0') format('woff'),
    url('../fonts/font-awesome/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
    url('../fonts/font-awesome/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

:root {
  --dark-bg-primary: #1e1e2e;
  --dark-bg-secondary: #2a2b3d;
  --dark-bg-tertiary: #31324a;
  --dark-text-primary: #e4e4e7;
  --dark-text-secondary: #a1a1aa;
  --dark-border: #3f3f54;
  --primary-color: #5b67ff;
}

/* Full-page login layout (no top nav, centered card like admin) */
body.customers.customers_login .navbar.navbar-default.header,
body.customers.customers_login nav.navbar {
  display: none !important;
}

body.customers.customers_login #wrapper,
body.customers.customers_login #content {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

body.customers.customers_login #content > .container:first-child .row:empty,
body.customers.customers_login #content > .container:first-child {
  display: none !important;
}

body.customers.customers_login {
  background: var(--dark-bg-primary) !important;
  color: var(--dark-text-primary) !important;
  font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body.customers.customers_login .mtop40 {
  margin-top: 0 !important;
  padding-top: 6rem;
  max-width: 28rem;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: 100%;
}

body.customers.customers_login .col-md-4,
body.customers.customers_login .col-md-offset-4,
body.customers.customers_login .col-sm-8,
body.customers.customers_login .col-sm-offset-2 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

body.customers.customers_login .login-heading,
body.customers.customers_login h1.login-heading {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.25rem !important;
}

body.customers.customers_login .panel_s {
  background: var(--dark-bg-secondary) !important;
  border: 1px solid var(--dark-border) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  margin-bottom: 0 !important;
}

body.customers.customers_login .panel_s .panel-body {
  background: var(--dark-bg-secondary) !important;
  border: none !important;
  padding: 2rem 1.5rem !important;
}

body.customers.customers_login .login-form,
body.customers.customers_login .login-form * {
  color: var(--dark-text-primary) !important;
}

body.customers.customers_login .form-group {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

/* Kill portal boxed inputs — match admin underline fields exactly */
body.customers.customers_login .panel-body .form-control,
body.customers.customers_login .login-form .form-control,
body.customers.customers_login .login-form input.form-control,
body.customers.customers_login .login-form input[type="email"],
body.customers.customers_login .login-form input[type="password"],
body.customers.customers_login .login-form input[type="text"],
body.customers.customers_login #email,
body.customers.customers_login #password {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--dark-text-primary) !important;
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--dark-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 8px 0 4px 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.customers.customers_login .panel-body .form-control:focus,
body.customers.customers_login .login-form .form-control:focus,
body.customers.customers_login .login-form input:focus,
body.customers.customers_login #email:focus,
body.customers.customers_login #password:focus {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--dark-text-primary) !important;
  border: none !important;
  border-bottom: 1px solid var(--dark-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

body.customers.customers_login input:-webkit-autofill,
body.customers.customers_login input:-webkit-autofill:hover,
body.customers.customers_login input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark-text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--dark-bg-secondary) inset !important;
  box-shadow: 0 0 0 1000px var(--dark-bg-secondary) inset !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--dark-border) !important;
  border-radius: 0 !important;
  transition: background-color 99999s ease-out 0s !important;
}

/* Language bootstrap-select — same underline style as email/password (no box, no radius) */
body.customers.customers_login .bootstrap-select.form-control,
body.customers.customers_login .bootstrap-select.bs3,
body.customers.customers_login .login-form .bootstrap-select {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

body.customers.customers_login .bootstrap-select > .dropdown-toggle,
body.customers.customers_login .bootstrap-select > .dropdown-toggle.btn-default,
body.customers.customers_login .bootstrap-select > .dropdown-toggle.btn-default:hover,
body.customers.customers_login .bootstrap-select > .dropdown-toggle.btn-default:focus,
body.customers.customers_login .bootstrap-select.open > .dropdown-toggle.btn-default {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--dark-text-primary) !important;
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--dark-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 8px 24px 4px 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
}

body.customers.customers_login .bootstrap-select .filter-option,
body.customers.customers_login .bootstrap-select .filter-option-inner,
body.customers.customers_login .bootstrap-select .filter-option-inner-inner {
  color: var(--dark-text-primary) !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

body.customers.customers_login .bootstrap-select .dropdown-toggle .caret {
  border-top-color: var(--dark-text-secondary) !important;
  right: 0 !important;
  margin-top: -2px !important;
}

body.customers.customers_login .bootstrap-select .dropdown-menu {
  background: var(--dark-bg-secondary) !important;
  border: 1px solid var(--dark-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
}

body.customers.customers_login .bootstrap-select .dropdown-menu > li > a {
  color: var(--dark-text-primary) !important;
  padding: 8px 14px !important;
  background: transparent !important;
}

body.customers.customers_login .bootstrap-select .dropdown-menu > li > a:hover,
body.customers.customers_login .bootstrap-select .bootstrap-select .dropdown-menu > li.selected > a,
body.customers.customers_login .bootstrap-select .dropdown-menu > li.active > a {
  background: var(--dark-bg-tertiary) !important;
  color: var(--primary-color) !important;
}

body.customers.customers_login .bootstrap-select .bs-searchbox,
body.customers.customers_login .bootstrap-select .bs-actionsbox,
body.customers.customers_login .bootstrap-select .bs-donebutton {
  border: none !important;
  padding: 0 !important;
}

body.customers.customers_login .bootstrap-select .bs-searchbox .form-control {
  background: var(--dark-bg-tertiary) !important;
  border: 1px solid var(--dark-border) !important;
  border-radius: 4px !important;
  margin: 6px 8px !important;
  padding: 6px 10px !important;
  box-shadow: none !important;
}

body.customers.customers_login select.form-control.selectpicker {
  display: none !important;
}

body.customers.customers_login .control-label,
body.customers.customers_login label {
  color: var(--dark-text-primary) !important;
  font-weight: normal !important;
}

body.customers.customers_login .checkbox input[type="checkbox"] {
  margin-top: 2px !important;
}

body.customers.customers_login .login_icon {
  color: var(--dark-text-secondary) !important;
  margin-right: 8px !important;
  transition: color 0.3s ease !important;
}

body.customers.customers_login .login_icon.icon_input_focus {
  color: var(--primary-color) !important;
}

body.customers.customers_login .fa-envelope:before {
  font-family: 'FontAwesome';
  content: "\f0e0";
}

body.customers.customers_login .fa-key:before {
  font-family: 'FontAwesome';
  content: "\f084";
}

body.customers.customers_login a {
  color: var(--primary-color) !important;
}

body.customers.customers_login a.text-muted {
  color: var(--dark-text-secondary) !important;
}

body.customers.customers_login a:hover,
body.customers.customers_login a.text-muted:hover {
  color: #7380ff !important;
  text-decoration: underline !important;
}

body.customers.customers_login .btn-primary,
body.customers.customers_login button[type="submit"].btn-primary {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
}

body.customers.customers_login .btn-primary:hover,
body.customers.customers_login .btn-primary:focus,
body.customers.customers_login button[type="submit"].btn-primary:hover {
  background: #7380ff !important;
  border-color: #7380ff !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(91, 103, 255, 0.4) !important;
}

body.customers.customers_login .btn-default {
  background: var(--dark-bg-tertiary) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-primary) !important;
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
}

body.customers.customers_login .btn-default:hover {
  background: var(--dark-bg-primary) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-1px) !important;
}

body.customers.customers_login .checkbox label {
  color: var(--dark-text-primary) !important;
}

body.customers.customers_login .alert {
  border-radius: 6px !important;
  padding: 12px 15px !important;
  margin-bottom: 15px !important;
}

body.customers.customers_login .alert-danger,
body.customers.customers_login .alert.alert-danger,
body.customers.customers_login .text-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

body.customers.customers_login .alert-success {
  background-color: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #86efac !important;
}

body.customers.customers_login .line_toggler {
  background: #3f3f54 !important;
  height: 2px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  display: block !important;
  position: relative !important;
}

body.customers.customers_login .line_toggler.active {
  background: #5b67ff !important;
  transform: scaleX(1) !important;
}

body.customers.customers_login footer,
body.customers.customers_login .footer {
  display: none !important;
}

/* Match admin login icons (bundled FA4), override portal FA6 rules from common.css */
body.customers.customers_login .login_icon,
body.customers.customers_login i.login_icon.fa,
body.customers.customers_login i.login_icon.fa-envelope,
body.customers.customers_login i.login_icon.fa-key {
  font-family: 'FontAwesome' !important;
  font-weight: normal !important;
}
