/* MapleSense login — split washroom stage + white sign-in panel.
   Matches the Login Screen mock. Fluid from phone to wide desktop. */

@import url("https://fonts.googleapis.com/css2?family=Jura:wght@600;700&family=Cairo:wght@400;600&display=swap");

html,
body,
.login-pf body {
  margin: 0;
  min-height: 100vh;
  background: #111 url("../img/login-bg.jpg") center center / cover no-repeat fixed;
  color: #111;
  font-family: Arial, "Cairo", sans-serif;
}

.login-pf-page {
  display: flex !important;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 100vh;
  width: 100%;
  padding: 0 !important;
  box-sizing: border-box;
  position: relative;
}

.login-pf .container {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Left brand stage */
#kc-header {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: transparent;
  padding: 4vh 4vw;
  box-sizing: border-box;
}

#kc-header-wrapper {
  width: min(72%, 760px);
  aspect-ratio: 1885 / 700;
  max-height: 42vh;
  margin: 0;
  background: url("../img/maplesense-lockup.png") center / contain no-repeat;
  mix-blend-mode: screen;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

#kc-header-wrapper * {
  display: none !important;
}

/* Right white panel */
#kc-container,
#kc-container-wrapper,
#kc-content,
#kc-content-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.login-pf-page .card-pf,
.card-pf {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  float: none !important;
  width: min(440px, 38vw);
  min-width: 320px;
  min-height: 100vh;
  max-width: none !important;
  margin: 0 !important;
  padding: 48px 42px 36px;
  box-sizing: border-box;
  border: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: none;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-pf-header,
#kc-content {
  width: 100%;
}

#kc-page-title {
  position: relative;
  margin: 92px 0 22px;
  padding: 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: #111;
}

#kc-page-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -88px;
  width: min(240px, 70%);
  height: 72px;
  transform: translateX(-50%);
  background: url("../img/maplesense-mark.png") center / contain no-repeat;
  mix-blend-mode: multiply;
}

#kc-page-title::after {
  content: "Signin your username";
  display: block;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #e7a8b8;
}

#kc-form,
#kc-form-wrapper,
#kc-form-login {
  width: 100%;
}

label,
.control-label,
.pf-c-form__label,
.pf-c-form__label-text {
  display: block;
  margin: 14px 0 6px;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
.pf-c-form-control,
.form-control {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #f2f3f5;
  color: #222;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

input::placeholder {
  color: #b0b4ba;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
.form-control:focus {
  box-shadow: 0 0 0 2px rgba(230, 65, 19, 0.18);
  border: none;
}

.login-pf-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}

.checkbox,
.checkbox label,
.login-pf-settings label {
  margin: 0;
  color: #8b919a;
  font-size: 13px;
  font-weight: 500;
}

#kc-form-options a,
#kc-form-buttons + a,
a#reset-login,
.login-pf-settings a {
  color: #3aa0d8 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

#kc-login,
input[type="submit"],
.btn-primary,
.pf-c-button.pf-m-primary {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 8px;
  background: #1c1c1c;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}

input[type="submit"]:hover,
.btn-primary:hover,
.pf-c-button.pf-m-primary:hover {
  background: #000;
}

.alert,
.alert-error,
.pf-c-alert,
#sanexus-pl-err {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #be123c !important;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.kc-social-section,
#kc-social-providers {
  margin-top: 18px;
}

.kc-social-section::before,
#kc-social-providers::before {
  content: "Or Continue With";
  display: block;
  text-align: center;
  color: #9aa0a8;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin: 8px 0 14px;
}

#kc-registration,
#kc-info {
  margin-top: 22px;
  text-align: center;
  color: #8b919a;
  font-size: 13px;
}

#kc-registration a,
#kc-info a {
  color: #3aa0d8 !important;
  font-weight: 700;
  text-decoration: none !important;
}

#kc-registration a,
#kc-info a {
  color: #3aa0d8 !important;
  font-weight: 700;
  text-decoration: none !important;
}

#ms-social {
  margin-top: 8px;
}

.ms-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: #9aa0a8;
  font-size: 13px;
}

.ms-or span {
  flex: 1;
  height: 1px;
  background: #eceff3;
}

.ms-or em {
  font-style: normal;
  white-space: nowrap;
}

.ms-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.ms-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff center / 22px 22px no-repeat;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
}

.ms-social--google {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.2-.1-2.3-.4-3.5z'/><path fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 16.3 4 9.6 8.3 6.3 14.7z'/><path fill='%234CAF50' d='M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3C29.2 35.1 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/><path fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-1.1 3.2-3.5 5.8-6.6 7.5l6.3 5.3C37.4 38.4 44 33 44 24c0-1.2-.1-2.3-.4-3.5z'/></svg>");
}

.ms-social--apple {
  background-color: #111;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M16.4 12.6c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.2-2.8.8-3.5.8s-1.8-.8-3-.8c-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.2 9.3.8 1.1 1.7 2.3 2.9 2.3 1.2 0 1.6-.7 3-.7s1.8.7 3 .7 2-.1 2.9-2.3c.7-1 1-2 1-2.1-.1 0-1.9-.7-1.9-2.9zM14.7 6.5c.6-.8 1.1-1.9.9-3-.9 0-2 .6-2.6 1.4-.6.7-1.1 1.8-.9 2.9 1 .1 2-.5 2.6-1.3z'/></svg>");
  background-size: 20px 20px;
}

.ms-social--facebook {
  background-color: #1877f2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.6l.4-3H13v-2c0-.6.4-1 1-1z'/></svg>");
  background-size: 22px 22px;
}

.ms-signup {
  margin: 22px 0 0;
  text-align: center;
  color: #8b919a;
  font-size: 13px;
}

.ms-signup span {
  color: #3aa0d8;
  font-weight: 700;
}

#kc-locale {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
}

#kc-locale-dropdown button,
#kc-locale-dropdown a#kc-current-locale-link {
  background: #fff;
  color: #111 !important;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
}

@media (max-width: 900px) {
  .login-pf-page,
  .login-pf .container {
    flex-direction: column;
    justify-content: flex-start;
  }

  #kc-header {
    min-height: 34vh;
    flex: 0 0 auto;
    padding: 28px 20px 12px;
  }

  #kc-header-wrapper {
    width: min(92%, 520px);
    max-height: 22vh;
  }

  .login-pf-page .card-pf,
  .card-pf {
    width: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 28px 28px 0 0;
    padding: 28px 22px 32px;
  }

  #kc-page-title {
    margin-top: 78px;
    font-size: 24px;
  }
}
