/* Login (/login) and Forgot Password (/login#forgot): a frosted form on a full-screen photo (login-bg4.jpg,
   login-mobile.jpg), built to the approved design image. From top to bottom: the glass layout, extra sign-in buttons,
   then narrow, zoomed-in, very wide and phone layouts, then fallbacks.
   Everything is scoped to .for-login / .for-forgot, so no other website page is affected.
   Frappe shows and hides these sections inline, so display is never set on them.
   Heading and subtitle texts come from data-refex-* attributes set by login_extras.js (translated with __()); the text
   written in this file is the English fallback used until the script runs. */

/* ===== Glass sign-in (/login and /login#forgot), built to the approved design image.
   The photo (login-bg4.jpg) already holds the empty glass panel and its outline; the form is placed exactly on top of it, so the form draws no border of its own.
   All sizes use --u, one pixel of the 1671x941 design, scaled the same way as the "cover" background.
   Texts added with CSS are not translated. ===== */
html:has(.for-login),
html:has(.for-forgot) {
  --W: max(100vw, 177.577vh);
  --H: max(56.314vw, 100vh);
  --u: calc(var(--W) / 1671);
  --ox: calc((100vw - var(--W)) / 2);
  --oy: calc((100vh - var(--H)) / 2 + 5px);
  background: transparent
}

html:has(.for-login) body,
html:has(.for-forgot) body {
  min-height: 100vh;
  overflow: hidden;
  background: url(/assets/refex/images/login-bg4.jpg) center calc(50% + 5px)/cover no-repeat, #0e2a44 url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQsJCAwLCgsODQwOEh4UEhEREiUbHBYeLCcuLisnKyoxN0Y7MTRCNCorPVM+QkhKTk9OLztWXFVMW0ZNTkv/2wBDAQ0ODhIQEiQUFCRLMisyS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0v/wAARCAAkAEADASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAAQCBQYBAwf/xAAoEAACAQMDBAICAwEAAAAAAAABAgMABBEFEiExQVFhExQGIjJScYH/xAAZAQACAwEAAAAAAAAAAAAAAAAAAgEDBAX/xAAiEQACAgEDBAMAAAAAAAAAAAAAAQIRAxMhMQQUMkESIuH/2gAMAwEAAhEDEQA/AKCNBjDYH+1Pao7inLuzeCPJGfdJhD4ro6qe6ZieCS2kjoVO5r1hiSQ8GoCKrbRbMy7yuOKlZkuWGg3skLJZ7jhRmpNpjHqOPNXf05BBLIpI2EjKDninxbyqnO3b3GKbuL8Q7ZLzsyw06FF7s/8AWoNp7ueUI8ZNaZbb5ZwqxpGO7N2FeeovCEWK0AcIf5jByaqeWblRfp4oxv8AA1xYhp4IkifJBypBrMsUHcVmVvZA5Cyfp6bIFS+7k4+WuTg6aeNU5G3JnUndGgaRB3FW34/fW8DSCVwCxGB5rFfZyM/Jx5rsV60Uisj5HcGtE8cnFqyqOVKV0fQ7+5u4IWG5Y4pWbJyNwB6Yql0/Xrqye5eSYzh1/QOSQD6pGy1qyeIpexyI/QlXOMVZwy6WXSRYSyKOAGzz5pYfKHonJJ5HdljY/kKyWjG9RFmYEBQeefVdhkWx053mjAy2U3cVQ390blgTNEpDhhuTBAFe19d/fXDXChfVPFyf2apivZVyYaE/LKoIA3nnbxTl1hD8SKoVR45oop/YnoShleSREY/qxwRT12gVlVeBnpRRULgGKiRhjnoOPVSimkjUMjkEjJA6UUUAWNtcSSxnfg/8odQYy44PqiipA//Z) center calc(50% + 5px)/cover no-repeat
}

html:has(.for-login) .page-content-wrapper,
html:has(.for-login) main.container,
html:has(.for-forgot) .page-content-wrapper,
html:has(.for-forgot) main.container {
  background: transparent;
  max-width: none;
  min-height: 0;
  padding: 0
}

html:has(.for-login) .navbar,
html:has(.for-forgot) .navbar,
html:has(.for-login) .web-footer,
html:has(.for-forgot) .web-footer,
html:has(.for-login) footer,
html:has(.for-forgot) footer {
  display: none
}

html body .for-login {
  --lw: 100%;
  box-sizing: border-box;
  position: fixed;
  z-index: 2;
  left: calc(var(--ox) + 144*var(--u));
  top: calc(var(--oy) + 137*var(--u));
  width: calc(581*var(--u));
  height: calc(651*var(--u));
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  background: transparent;
  border: 0;
  border-radius: calc(40*var(--u));
  box-shadow: none
}

html body .for-login::before,
html body .for-login::after,
html body .for-login .login-content::before {
  content: none !important;
  display: none !important
}

html body .for-login .page-card-head {
  width: auto;
  margin: 0;
  padding: calc(58*var(--u)) calc(62*var(--u)) 0 calc(65*var(--u));
  text-align: left
}

html body .for-login .page-card-head .app-logo {
  content: url(/assets/refex/images/refex-one-logo-hd.png?v=3);
  display: block;
  height: calc(63*var(--u));
  width: auto;
  max-width: none;
  max-height: none !important;
  filter: brightness(1.12) saturate(1.12) drop-shadow(0 0 calc(16*var(--u)) rgba(255, 255, 255, .32));
  margin: 0 0 calc(26*var(--u))
}

html body .for-login .page-card-head h4 {
  margin: 0;
  font-size: 0
}

html body .for-login .page-card-head h4::before {
  display: block;
  color: #fff;
  font-size: calc(47*var(--u));
  font-weight: 700;
  letter-spacing: calc(-.8*var(--u));
  line-height: 1
}

html body .for-login .page-card-head h4::after {
  display: block;
  margin-top: calc(14*var(--u));
  color: rgba(255, 255, 255, .92);
  font-size: calc(21*var(--u));
  font-weight: 400;
  line-height: 1.2
}

html body .for-login .page-card-head::after {
  content: "";
  display: block;
  width: calc(59*var(--u));
  height: calc(6*var(--u));
  border-radius: calc(3*var(--u));
  margin-top: calc(14*var(--u));
  background: #ff8a45
}

html body .for-login .page-card {
  width: auto;
  max-width: none;
  margin: 0;
  padding: calc(31*var(--u)) calc(62*var(--u)) 0 calc(65*var(--u));
  background: transparent;
  border: 0;
  border-radius: 0
}

html body .for-login .page-card form {
  max-width: none;
  margin: 0
}

html body .for-login .page-card form .form-group {
  margin: 0 0 calc(22*var(--u))
}

html body .for-login .page-card .form-label.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap
}

html body .for-login .page-card .page-card-body {
  position: relative;
  padding: 0
}

html body .for-login .page-card .page-card-body .email-field,
html body .for-login .page-card .page-card-body .password-field {
  position: relative
}

html body .for-login .page-card .page-card-body input.form-control {
  height: calc(60*var(--u));
  margin: 0;
  padding: 0 calc(56*var(--u)) 0 calc(70*var(--u)) !important;
  font-size: calc(21*var(--u));
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: calc(18*var(--u));
  box-shadow: none
}

html body .for-login .page-card .page-card-body input.form-control::placeholder {
  color: transparent
}

html body .for-login .page-card .page-card-body input.form-control:focus {
  background: rgba(255, 255, 255, .19);
  border-color: #ff8a45;
  box-shadow: 0 0 0 calc(4*var(--u)) rgba(255, 138, 69, .22)
}

html body .for-login .page-card .page-card-body input.form-control:-webkit-autofill,
html body .for-login .page-card .page-card-body input.form-control:-webkit-autofill:hover,
html body .for-login .page-card .page-card-body input.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  /* keep the frosted glass: the browser's own autofill fill is held off by an extremely long transition */
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, .13) !important;
  transition: background-color 9999999s ease-out 0s, color 9999999s ease-out 0s
}

html body .for-login .page-card .page-card-body .email-field:has(input:placeholder-shown)::after,
html body .for-login .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  position: absolute;
  left: calc(70*var(--u));
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(21*var(--u));
  color: rgba(255, 255, 255, .92);
  pointer-events: none
}

html body .for-login .page-card .page-card-body .email-field:has(input:placeholder-shown)::after {
  content: "Email"
}

html body .for-login .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  content: "Password"
}

html body .for-login .page-card .page-card-body .field-icon {
  left: calc(22*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(30*var(--u)) !important;
  height: calc(30*var(--u)) !important;
  filter: brightness(0) invert(1)
}

html body .for-login .page-card .page-card-body .toggle-password {
  right: calc(21*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(30*var(--u));
  height: calc(30*var(--u));
  font-size: 0 !important;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%2012s3.6-7%2010-7%2010%207%2010%207-3.6%207-10%207S2%2012%202%2012z%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27/%3E%3Cpath%20d%3D%27M4%204l16%2016%27/%3E%3C/svg%3E") center/contain no-repeat
}

html body .for-login .page-card .page-card-actions {
  margin-top: calc(38*var(--u))
}

html body .for-login .page-card .page-card-actions .btn-login,
html body .for-login .page-card .page-card-actions .btn-forgot {
  height: calc(64*var(--u));
  padding: 0;
  border: 0;
  border-radius: calc(18*var(--u));
  font-size: calc(26*var(--u));
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8a45, #e2621f);
  box-shadow: none
}

html body .for-login .page-card .page-card-actions .btn-login:hover,
html body .for-login .page-card .page-card-actions .btn-forgot:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #ff9d61, #ea6d2a)
}

html body .for-login .page-card .page-card-actions .btn-login:focus-visible,
html body .for-login .page-card .page-card-actions .btn-forgot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

html body .for-login .sign-up-message,
html body .for-login .page-card .sign-up-message {
  padding: calc(16*var(--u)) 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: calc(17*var(--u))
}

html body .for-login .sign-up-message a,
html body .for-login .page-card .sign-up-message a {
  color: #ffab78
}

html body .for-forgot {
  --lw: 100%;
  box-sizing: border-box;
  position: fixed;
  z-index: 2;
  left: calc(var(--ox) + 144*var(--u));
  top: calc(var(--oy) + 137*var(--u));
  width: calc(581*var(--u));
  height: calc(651*var(--u));
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  background: transparent;
  border: 0;
  border-radius: calc(40*var(--u));
  box-shadow: none
}

html body .for-forgot::before,
html body .for-forgot::after,
html body .for-forgot .login-content::before {
  content: none !important;
  display: none !important
}

html body .for-forgot .page-card-head {
  width: auto;
  margin: 0;
  padding: calc(58*var(--u)) calc(62*var(--u)) 0 calc(65*var(--u));
  text-align: left
}

html body .for-forgot .page-card-head .app-logo {
  content: url(/assets/refex/images/refex-one-logo-hd.png?v=3);
  display: block;
  height: calc(63*var(--u));
  width: auto;
  max-width: none;
  max-height: none !important;
  filter: brightness(1.12) saturate(1.12) drop-shadow(0 0 calc(16*var(--u)) rgba(255, 255, 255, .32));
  margin: 0 0 calc(26*var(--u))
}

html body .for-forgot .page-card-head h4 {
  margin: 0;
  font-size: 0
}

html body .for-forgot .page-card-head h4::before {
  display: block;
  color: #fff;
  font-size: calc(47*var(--u));
  font-weight: 700;
  letter-spacing: calc(-.8*var(--u));
  line-height: 1
}

html body .for-forgot .page-card-head h4::after {
  display: block;
  margin-top: calc(14*var(--u));
  color: rgba(255, 255, 255, .92);
  font-size: calc(21*var(--u));
  font-weight: 400;
  line-height: 1.2
}

html body .for-forgot .page-card-head::after {
  content: "";
  display: block;
  width: calc(59*var(--u));
  height: calc(6*var(--u));
  border-radius: calc(3*var(--u));
  margin-top: calc(14*var(--u));
  background: #ff8a45
}

html body .for-forgot .page-card {
  width: auto;
  max-width: none;
  margin: 0;
  padding: calc(31*var(--u)) calc(62*var(--u)) 0 calc(65*var(--u));
  background: transparent;
  border: 0;
  border-radius: 0
}

html body .for-forgot .page-card form {
  max-width: none;
  margin: 0
}

html body .for-forgot .page-card form .form-group {
  margin: 0 0 calc(22*var(--u))
}

html body .for-forgot .page-card .form-label.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap
}

html body .for-forgot .page-card .page-card-body {
  position: relative;
  padding: 0
}

html body .for-forgot .page-card .page-card-body .email-field,
html body .for-forgot .page-card .page-card-body .password-field {
  position: relative
}

html body .for-forgot .page-card .page-card-body input.form-control {
  height: calc(60*var(--u));
  margin: 0;
  padding: 0 calc(56*var(--u)) 0 calc(70*var(--u)) !important;
  font-size: calc(21*var(--u));
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: calc(18*var(--u));
  box-shadow: none
}

html body .for-forgot .page-card .page-card-body input.form-control::placeholder {
  color: transparent
}

html body .for-forgot .page-card .page-card-body input.form-control:focus {
  background: rgba(255, 255, 255, .19);
  border-color: #ff8a45;
  box-shadow: 0 0 0 calc(4*var(--u)) rgba(255, 138, 69, .22)
}

html body .for-forgot .page-card .page-card-body input.form-control:-webkit-autofill,
html body .for-forgot .page-card .page-card-body input.form-control:-webkit-autofill:hover,
html body .for-forgot .page-card .page-card-body input.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  /* keep the frosted glass: the browser's own autofill fill is held off by an extremely long transition */
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, .13) !important;
  transition: background-color 9999999s ease-out 0s, color 9999999s ease-out 0s
}

html body .for-forgot .page-card .page-card-body .email-field:has(input:placeholder-shown)::after,
html body .for-forgot .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  position: absolute;
  left: calc(70*var(--u));
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(21*var(--u));
  color: rgba(255, 255, 255, .92);
  pointer-events: none
}

html body .for-forgot .page-card .page-card-body .email-field:has(input:placeholder-shown)::after {
  content: "Email"
}

html body .for-forgot .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  content: "Password"
}

html body .for-forgot .page-card .page-card-body .field-icon {
  left: calc(22*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(30*var(--u)) !important;
  height: calc(30*var(--u)) !important;
  filter: brightness(0) invert(1)
}

html body .for-forgot .page-card .page-card-body .toggle-password {
  right: calc(21*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(30*var(--u));
  height: calc(30*var(--u));
  font-size: 0 !important;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%2012s3.6-7%2010-7%2010%207%2010%207-3.6%207-10%207S2%2012%202%2012z%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27/%3E%3Cpath%20d%3D%27M4%204l16%2016%27/%3E%3C/svg%3E") center/contain no-repeat
}

html body .for-forgot .page-card .page-card-actions {
  margin-top: calc(38*var(--u))
}

html body .for-forgot .page-card .page-card-actions .btn-login,
html body .for-forgot .page-card .page-card-actions .btn-forgot {
  height: calc(64*var(--u));
  padding: 0;
  border: 0;
  border-radius: calc(18*var(--u));
  font-size: calc(26*var(--u));
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8a45, #e2621f);
  box-shadow: none
}

html body .for-forgot .page-card .page-card-actions .btn-login:hover,
html body .for-forgot .page-card .page-card-actions .btn-forgot:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #ff9d61, #ea6d2a)
}

html body .for-forgot .page-card .page-card-actions .btn-login:focus-visible,
html body .for-forgot .page-card .page-card-actions .btn-forgot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

html body .for-forgot .sign-up-message,
html body .for-forgot .page-card .sign-up-message {
  padding: calc(16*var(--u)) 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: calc(17*var(--u))
}

html body .for-forgot .sign-up-message a,
html body .for-forgot .page-card .sign-up-message a {
  color: #ffab78
}

html body .for-login .page-card .page-card-body .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12*var(--u));
  height: calc(22*var(--u));
  margin: calc(32*var(--u)) 0 0
}

html body .for-login .page-card form .form-group:has(.password-field) {
  margin-bottom: 0
}

html body .for-login .page-card .page-card-body .login-options .remember-me {
  display: flex;
  align-items: center;
  gap: calc(11*var(--u));
  margin: 0;
  white-space: nowrap;
  font-size: calc(19*var(--u));
  font-weight: 400;
  color: #fff;
  cursor: pointer
}

html body .for-login .page-card .page-card-body .login-options .remember-me input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: calc(22*var(--u)) !important;
  height: calc(22*var(--u)) !important;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: 1.6px solid rgba(255, 255, 255, .9);
  border-radius: calc(4*var(--u));
  background: transparent;
  cursor: pointer
}

html body .for-login .page-card .page-card-body .login-options .remember-me input:checked {
  border-color: #ff8a45;
  background: #ff8a45 url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%273.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012.5l4.5%204.5L19%207.5%27/%3E%3C/svg%3E") center/80% no-repeat
}

html body .for-login .page-card .page-card-body .login-options .remember-me input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px
}

html body .for-login .page-card .page-card-body .forgot-password-message {
  position: static !important;
  margin: 0;
  line-height: 1;
  text-align: right;
  white-space: nowrap
}

html body .for-login .page-card .page-card-body .forgot-password-message>a {
  font-size: calc(19*var(--u));
  font-weight: 500;
  color: #ffab78
}

html body .for-login .page-card-head h4::before {
  content: "Login"
}

html body .for-login .page-card-head h4::after {
  content: "Access your Refex workspace"
}

html body .for-forgot .page-card-head h4::before {
  font-size: calc(42*var(--u));
  letter-spacing: calc(-.6*var(--u))
}

html body .for-forgot .page-card-head h4::after {
  content: "We\2019ll email you a link to reset it."
}

html body .for-forgot .page-card .page-card-actions .sign-up-message {
  margin: calc(18*var(--u)) 0 0;
  padding: 0;
  text-align: center
}

html body .for-forgot .page-card .page-card-actions .sign-up-message a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(58*var(--u));
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: calc(18*var(--u));
  font-size: calc(20*var(--u));
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .06)
}

html body .for-forgot .page-card .page-card-actions .sign-up-message a:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #ff8a45;
  color: #fff
}

html body .for-forgot .page-card .page-card-actions .sign-up-message a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

/* refined scale and states: sizes suited to a sign-in form, a field hover, a pressed button, and a red error state (Frappe marks a failed sign-in with .invalid) */
html body .for-login .page-card-head {
  padding-top: calc(64*var(--u))
}

html body .for-login .page-card-head .app-logo {
  margin-bottom: calc(34*var(--u))
}

html body .for-login .page-card-head h4::before {
  font-size: calc(35*var(--u));
  line-height: 1.1;
  letter-spacing: calc(-.5*var(--u))
}

html body .for-login .page-card-head h4::after {
  margin-top: calc(10*var(--u));
  font-size: calc(16*var(--u));
  line-height: 1.35
}

html body .for-login .page-card-head::after {
  width: calc(52*var(--u));
  height: calc(5*var(--u));
  margin-top: calc(18*var(--u))
}

html body .for-login .page-card {
  padding-top: calc(36*var(--u))
}

html body .for-login .page-card form .form-group {
  margin-bottom: calc(20*var(--u))
}

html body .for-login .page-card .page-card-body input.form-control {
  height: calc(54*var(--u));
  padding-left: calc(62*var(--u)) !important;
  font-size: calc(15*var(--u));
  border-radius: calc(16*var(--u));
  transition: border-color .15s, background-color .15s, box-shadow .15s
}

html body .for-login .page-card .page-card-body input.form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, .8)
}

html body .for-login .page-card .page-card-body.invalid input.form-control {
  border-color: #ff9b9b
}

html body .for-login .page-card .page-card-body .email-field:has(input:placeholder-shown)::after,
html body .for-login .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  left: calc(62*var(--u));
  font-size: calc(15*var(--u))
}

html body .for-login .page-card .page-card-body .field-icon {
  left: calc(21*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(24*var(--u)) !important;
  height: calc(24*var(--u)) !important
}

html body .for-login .page-card .page-card-body .toggle-password {
  right: calc(20*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(24*var(--u));
  height: calc(24*var(--u))
}

html body .for-login .page-card .page-card-actions {
  margin-top: calc(34*var(--u))
}

html body .for-login .page-card .page-card-actions .btn-login,
html body .for-login .page-card .page-card-actions .btn-forgot {
  height: calc(56*var(--u));
  border-radius: calc(16*var(--u));
  font-size: calc(16*var(--u));
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, transform .1s
}

html body .for-login .page-card .page-card-actions .btn-login:active,
html body .for-login .page-card .page-card-actions .btn-forgot:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #e57530, #cc5416)
}

html body .for-login .page-card:has(.page-card-body.invalid) .page-card-actions .btn-login,
html body .for-login .page-card:has(.page-card-body.invalid) .page-card-actions .btn-forgot {
  color: #fff;
  background: linear-gradient(180deg, #ef6b6b, #d84f4f)
}

html body .for-forgot .page-card-head {
  padding-top: calc(64*var(--u))
}

html body .for-forgot .page-card-head .app-logo {
  margin-bottom: calc(34*var(--u))
}

html body .for-forgot .page-card-head h4::before {
  font-size: calc(35*var(--u));
  line-height: 1.1;
  letter-spacing: calc(-.5*var(--u))
}

html body .for-forgot .page-card-head h4::after {
  margin-top: calc(10*var(--u));
  font-size: calc(16*var(--u));
  line-height: 1.35
}

html body .for-forgot .page-card-head::after {
  width: calc(52*var(--u));
  height: calc(5*var(--u));
  margin-top: calc(18*var(--u))
}

html body .for-forgot .page-card {
  padding-top: calc(36*var(--u))
}

html body .for-forgot .page-card form .form-group {
  margin-bottom: calc(20*var(--u))
}

html body .for-forgot .page-card .page-card-body input.form-control {
  height: calc(54*var(--u));
  padding-left: calc(62*var(--u)) !important;
  font-size: calc(15*var(--u));
  border-radius: calc(16*var(--u));
  transition: border-color .15s, background-color .15s, box-shadow .15s
}

html body .for-forgot .page-card .page-card-body input.form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, .8)
}

html body .for-forgot .page-card .page-card-body.invalid input.form-control {
  border-color: #ff9b9b
}

html body .for-forgot .page-card .page-card-body .email-field:has(input:placeholder-shown)::after,
html body .for-forgot .page-card .page-card-body .password-field:has(input:placeholder-shown)::after {
  left: calc(62*var(--u));
  font-size: calc(15*var(--u))
}

html body .for-forgot .page-card .page-card-body .field-icon {
  left: calc(21*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(24*var(--u)) !important;
  height: calc(24*var(--u)) !important
}

html body .for-forgot .page-card .page-card-body .toggle-password {
  right: calc(20*var(--u)) !important;
  top: calc(15*var(--u)) !important;
  width: calc(24*var(--u));
  height: calc(24*var(--u))
}

html body .for-forgot .page-card .page-card-actions {
  margin-top: calc(34*var(--u))
}

html body .for-forgot .page-card .page-card-actions .btn-login,
html body .for-forgot .page-card .page-card-actions .btn-forgot {
  height: calc(56*var(--u));
  border-radius: calc(16*var(--u));
  font-size: calc(16*var(--u));
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, transform .1s
}

html body .for-forgot .page-card .page-card-actions .btn-login:active,
html body .for-forgot .page-card .page-card-actions .btn-forgot:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #e57530, #cc5416)
}

html body .for-forgot .page-card:has(.page-card-body.invalid) .page-card-actions .btn-login,
html body .for-forgot .page-card:has(.page-card-body.invalid) .page-card-actions .btn-forgot {
  color: #fff;
  background: linear-gradient(180deg, #ef6b6b, #d84f4f)
}

html body .for-login .page-card .page-card-body .login-options {
  height: calc(20*var(--u));
  margin-top: calc(28*var(--u))
}

html body .for-login .page-card .page-card-body .login-options .remember-me {
  gap: calc(10*var(--u));
  font-size: calc(13.5*var(--u))
}

html body .for-login .page-card .page-card-body .login-options .remember-me input {
  width: calc(18*var(--u)) !important;
  height: calc(18*var(--u)) !important;
  border-radius: calc(4*var(--u))
}

html body .for-login .page-card .page-card-body .forgot-password-message>a {
  font-size: calc(13.5*var(--u))
}

html body .for-forgot .page-card-head h4::before {
  font-size: calc(35*var(--u))
}

html body .for-forgot .page-card .page-card-actions .sign-up-message {
  margin-top: calc(16*var(--u))
}

html body .for-forgot .page-card .page-card-actions .sign-up-message a {
  height: calc(52*var(--u));
  border-radius: calc(16*var(--u));
  font-size: calc(15*var(--u))
}

/* extra sign-in options (Google, refexone, Frappe Cloud, email link): an "or" divider and one row of frosted buttons under Sign in.
   When they are present the panel's spacing tightens so everything stays inside the painted glass. */
html body .for-login:has(.social-logins) .page-card-head {
  padding-top: calc(46*var(--u));
  padding-left: calc(58*var(--u));
  padding-right: calc(56*var(--u))
}

html body .for-login:has(.social-logins) .page-card-head .app-logo {
  height: calc(50*var(--u));
  margin-bottom: calc(24*var(--u))
}

html body .for-login:has(.social-logins) .page-card-head h4::before {
  font-size: calc(33*var(--u))
}

html body .for-login:has(.social-logins) .page-card-head h4::after {
  margin-top: calc(8*var(--u))
}

html body .for-login:has(.social-logins) .page-card-head::after {
  margin-top: calc(14*var(--u))
}

html body .for-login:has(.social-logins) .page-card {
  padding-top: calc(26*var(--u));
  padding-left: calc(58*var(--u));
  padding-right: calc(56*var(--u))
}

html body .for-login:has(.social-logins) .page-card form .form-group {
  margin-bottom: calc(14*var(--u))
}

html body .for-login:has(.social-logins) .page-card .page-card-body input.form-control {
  height: calc(50*var(--u))
}

html body .for-login:has(.social-logins) .page-card .page-card-body .field-icon,
html body .for-login:has(.social-logins) .page-card .page-card-body .toggle-password {
  top: calc(13*var(--u)) !important
}

html body .for-login:has(.social-logins) .page-card .page-card-body .login-options {
  margin-top: calc(18*var(--u))
}

html body .for-login:has(.social-logins) .page-card .page-card-actions {
  margin-top: calc(22*var(--u))
}

html body .for-login:has(.social-logins) .page-card .page-card-actions .btn-login {
  height: calc(52*var(--u))
}

html body .for-login .page-card .social-logins {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10*var(--u));
  margin: 0;
  text-align: left
}

html body .for-login .page-card .social-logins .login-divider {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: calc(12*var(--u));
  margin: calc(16*var(--u)) 0 calc(2*var(--u));
  font-size: calc(12.5*var(--u));
  color: rgba(255, 255, 255, .8)
}

html body .for-login .page-card .social-logins .login-divider::before,
html body .for-login .page-card .social-logins .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .3)
}

html body .for-login .page-card .social-login-buttons {
  display: contents
}

html body .for-login .page-card .login-button-wrapper {
  display: block;
  flex: 1 1 calc(130*var(--u));
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important
}

html body .for-login .page-card .btn-login-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: calc(9*var(--u));
  width: 100%;
  height: calc(48*var(--u));
  min-height: 0;
  margin: 0;
  padding: 0 calc(8*var(--u));
  border: 1.5px solid rgba(255, 255, 255, .4) !important;
  border-radius: calc(14*var(--u));
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: none;
  color: #fff !important;
  font-size: calc(14*var(--u));
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .15s, border-color .15s
}

html body .for-login .page-card .btn-login-option:hover {
  background: rgba(255, 255, 255, .22) !important;
  border-color: #ff8a45 !important;
  color: #fff !important;
  transform: none
}

html body .for-login .page-card .btn-login-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px
}

html body .for-login .page-card .btn-login-option img,
html body .for-login .page-card .btn-login-option svg {
  flex: none;
  width: calc(20*var(--u));
  height: calc(20*var(--u));
  margin: 0 !important;
  color: #fff;
  object-fit: contain
}

html body .for-login .page-card .btn-login-option:not(:has(img, svg)):not(.btn-login-with-email-link)::before {
  content: "";
  flex: none;
  width: calc(20*var(--u));
  height: calc(20*var(--u));
  background: url(/assets/refex/images/refex-globe.png) center/contain no-repeat
}

/* Frappe's cloud icon is clipped by its own viewBox (the path is wider than the box), so the same path is redrawn
   here with a box that fits it */
html body .for-login .page-card .btn-login-with-frappe-cloud svg {
  display: none
}

html body .for-login .page-card .btn-login-with-frappe-cloud::before {
  content: "";
  flex: none;
  width: calc(26*var(--u));
  height: calc(20*var(--u));
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.5 8 21 16'%3E%3Cpath d='M24.5011 14.1124C23.3954 12.4873 21.532 11.5477 19.594 11.6747C18.7616 10.1384 17.2211 9.12267 15.4198 9.0084C14.1651 8.93222 12.8979 9.3766 11.9165 10.24C11.2456 10.8367 10.7611 11.5223 10.463 12.2968C10.289 12.7539 9.89151 13.0459 9.46912 13.0459H6.5V15.5852H9.46912C10.9226 15.5852 12.2271 14.6584 12.7737 13.2237C12.9227 12.8301 13.1712 12.4873 13.5439 12.1571C14.0284 11.7255 14.662 11.4969 15.2583 11.535C16.1528 11.5985 16.7863 12.0175 17.1839 12.538C17.6063 13.0205 17.8423 13.7696 17.979 14.5187C18.774 14.2902 19.6437 14.0997 20.476 14.2394C21.1593 14.3536 21.7929 14.7218 22.2525 15.2678C22.327 15.3567 22.4016 15.4456 22.4637 15.5471C23.06 16.4232 23.1718 17.5024 22.7743 18.5689C22.414 19.5592 21.0847 20.4607 19.9791 20.4607H11.3326C10.1524 20.4607 9.18339 19.5592 9.03432 18.4038H6.54969C6.71119 20.9686 8.78585 23 11.3326 23H19.9915C22.1283 23 24.3769 21.451 25.1098 19.4704C25.7931 17.6167 25.5695 15.6614 24.5135 14.0997L24.5011 14.1124Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.5 8 21 16'%3E%3Cpath d='M24.5011 14.1124C23.3954 12.4873 21.532 11.5477 19.594 11.6747C18.7616 10.1384 17.2211 9.12267 15.4198 9.0084C14.1651 8.93222 12.8979 9.3766 11.9165 10.24C11.2456 10.8367 10.7611 11.5223 10.463 12.2968C10.289 12.7539 9.89151 13.0459 9.46912 13.0459H6.5V15.5852H9.46912C10.9226 15.5852 12.2271 14.6584 12.7737 13.2237C12.9227 12.8301 13.1712 12.4873 13.5439 12.1571C14.0284 11.7255 14.662 11.4969 15.2583 11.535C16.1528 11.5985 16.7863 12.0175 17.1839 12.538C17.6063 13.0205 17.8423 13.7696 17.979 14.5187C18.774 14.2902 19.6437 14.0997 20.476 14.2394C21.1593 14.3536 21.7929 14.7218 22.2525 15.2678C22.327 15.3567 22.4016 15.4456 22.4637 15.5471C23.06 16.4232 23.1718 17.5024 22.7743 18.5689C22.414 19.5592 21.0847 20.4607 19.9791 20.4607H11.3326C10.1524 20.4607 9.18339 19.5592 9.03432 18.4038H6.54969C6.71119 20.9686 8.78585 23 11.3326 23H19.9915C22.1283 23 24.3769 21.451 25.1098 19.4704C25.7931 17.6167 25.5695 15.6614 24.5135 14.0997L24.5011 14.1124Z'/%3E%3C/svg%3E") center/contain no-repeat
}

@media (max-width:520px) {
  html body .for-login .page-card .btn-login-option {
    flex-direction: column;
    gap: 6px;
    height: 62px;
    font-size: 12.5px
  }

  html body .for-login .page-card .btn-login-option img,
  html body .for-login .page-card .btn-login-option svg,
  html body .for-login .page-card .btn-login-option:not(:has(img, svg))::before {
    width: 20px;
    height: 20px
  }
}

/* heading and subtitle: translated texts set by login_extras.js; the English text above is the fallback */
html body .for-login .page-card-head h4[data-refex-title]::before,
html body .for-forgot .page-card-head h4[data-refex-title]::before {
  content: attr(data-refex-title)
}

html body .for-login .page-card-head h4[data-refex-sub]::after,
html body .for-forgot .page-card-head h4[data-refex-sub]::after {
  content: attr(data-refex-sub)
}

/* narrow, 4:3-or-taller, or ultra-wide windows (including high browser zoom): the painted panel would not line up, so the same photo is enlarged and anchored right (the panel sits in its left 43%, now off-screen) and the form becomes its own glass card */
@media (max-width:1099px),
(max-aspect-ratio:3/2),
(min-aspect-ratio:5/2) {

  html:has(.for-login),
  html:has(.for-forgot) {
    --u: 1px
  }

  html body .for-login,
  html body .for-forgot {
    width: min(581px, calc(100vw - 24px)) !important
  }

  html:has(.for-login) body,
  html:has(.for-forgot) body {
    overflow: auto;
    background: url(/assets/refex/images/login-bg4.jpg) right 62%/max(178vw, 178vh) auto no-repeat, #20456b url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQsJCAwLCgsODQwOEh4UEhEREiUbHBYeLCcuLisnKyoxN0Y7MTRCNCorPVM+QkhKTk9OLztWXFVMW0ZNTkv/2wBDAQ0ODhIQEiQUFCRLMisyS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0v/wAARCAAkAEADASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAAQCBQYBAwf/xAAoEAACAQMDBAICAwEAAAAAAAABAgMABBEFEiExQVFhExQGIjJScYH/xAAZAQACAwEAAAAAAAAAAAAAAAAAAgEDBAX/xAAiEQACAgEDBAMAAAAAAAAAAAAAAQIRAxMhMQQUMkESIuH/2gAMAwEAAhEDEQA/AKCNBjDYH+1Pao7inLuzeCPJGfdJhD4ro6qe6ZieCS2kjoVO5r1hiSQ8GoCKrbRbMy7yuOKlZkuWGg3skLJZ7jhRmpNpjHqOPNXf05BBLIpI2EjKDninxbyqnO3b3GKbuL8Q7ZLzsyw06FF7s/8AWoNp7ueUI8ZNaZbb5ZwqxpGO7N2FeeovCEWK0AcIf5jByaqeWblRfp4oxv8AA1xYhp4IkifJBypBrMsUHcVmVvZA5Cyfp6bIFS+7k4+WuTg6aeNU5G3JnUndGgaRB3FW34/fW8DSCVwCxGB5rFfZyM/Jx5rsV60Uisj5HcGtE8cnFqyqOVKV0fQ7+5u4IWG5Y4pWbJyNwB6Yql0/Xrqye5eSYzh1/QOSQD6pGy1qyeIpexyI/QlXOMVZwy6WXSRYSyKOAGzz5pYfKHonJJ5HdljY/kKyWjG9RFmYEBQeefVdhkWx053mjAy2U3cVQ390blgTNEpDhhuTBAFe19d/fXDXChfVPFyf2apivZVyYaE/LKoIA3nnbxTl1hD8SKoVR45oop/YnoShleSREY/qxwRT12gVlVeBnpRRULgGKiRhjnoOPVSimkjUMjkEjJA6UUUAWNtcSSxnfg/8odQYy44PqiipA//Z) right 62%/max(178vw, 178vh) auto no-repeat
  }

  html body .for-login,
  html body .for-forgot {
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    margin: 6vh auto;
    padding-bottom: calc(58*var(--u));
    border: 1.5px solid rgba(255, 255, 255, .5);
    background: rgba(46, 74, 104, .55);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%)
  }
}

/* browser zoomed in (login_extras.js adds refex-login-zoomed): the glass form is sized to the window, so its text would
   not grow with zoom; the card layout above is used instead, sized in pixels, so every zoom step makes it bigger.
   Narrower windows already get the card or phone layout from the media rules. */
@media (min-width:900px) {

  html.refex-login-zoomed:has(.for-login),
  html.refex-login-zoomed:has(.for-forgot) {
    --u: 1px
  }

  html.refex-login-zoomed body .for-login,
  html.refex-login-zoomed body .for-forgot {
    width: min(581px, calc(100vw - 24px)) !important
  }

  html.refex-login-zoomed:has(.for-login) body,
  html.refex-login-zoomed:has(.for-forgot) body {
    overflow: auto;
    background: url(/assets/refex/images/login-bg4.jpg) right 62%/max(178vw, 178vh) auto no-repeat, #20456b url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQsJCAwLCgsODQwOEh4UEhEREiUbHBYeLCcuLisnKyoxN0Y7MTRCNCorPVM+QkhKTk9OLztWXFVMW0ZNTkv/2wBDAQ0ODhIQEiQUFCRLMisyS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0v/wAARCAAkAEADASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAAQCBQYBAwf/xAAoEAACAQMDBAICAwEAAAAAAAABAgMABBEFEiExQVFhExQGIjJScYH/xAAZAQACAwEAAAAAAAAAAAAAAAAAAgEDBAX/xAAiEQACAgEDBAMAAAAAAAAAAAAAAQIRAxMhMQQUMkESIuH/2gAMAwEAAhEDEQA/AKCNBjDYH+1Pao7inLuzeCPJGfdJhD4ro6qe6ZieCS2kjoVO5r1hiSQ8GoCKrbRbMy7yuOKlZkuWGg3skLJZ7jhRmpNpjHqOPNXf05BBLIpI2EjKDninxbyqnO3b3GKbuL8Q7ZLzsyw06FF7s/8AWoNp7ueUI8ZNaZbb5ZwqxpGO7N2FeeovCEWK0AcIf5jByaqeWblRfp4oxv8AA1xYhp4IkifJBypBrMsUHcVmVvZA5Cyfp6bIFS+7k4+WuTg6aeNU5G3JnUndGgaRB3FW34/fW8DSCVwCxGB5rFfZyM/Jx5rsV60Uisj5HcGtE8cnFqyqOVKV0fQ7+5u4IWG5Y4pWbJyNwB6Yql0/Xrqye5eSYzh1/QOSQD6pGy1qyeIpexyI/QlXOMVZwy6WXSRYSyKOAGzz5pYfKHonJJ5HdljY/kKyWjG9RFmYEBQeefVdhkWx053mjAy2U3cVQ390blgTNEpDhhuTBAFe19d/fXDXChfVPFyf2apivZVyYaE/LKoIA3nnbxTl1hD8SKoVR45oop/YnoShleSREY/qxwRT12gVlVeBnpRRULgGKiRhjnoOPVSimkjUMjkEjJA6UUUAWNtcSSxnfg/8odQYy44PqiipA//Z) right 62%/max(178vw, 178vh) auto no-repeat
  }

  html.refex-login-zoomed body .for-login,
  html.refex-login-zoomed body .for-forgot {
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    margin: 6vh auto;
    padding-bottom: calc(58*var(--u));
    border: 1.5px solid rgba(255, 255, 255, .5);
    background: rgba(46, 74, 104, .55);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%)
  }
}

/* phones: tighter padding and smaller headings; fields stay at 16px so iOS does not zoom in when one is tapped */
@media (max-width:520px) {

  html body .for-login .page-card-head,
  html body .for-forgot .page-card-head {
    padding: 36px 24px 0
  }

  html body .for-login .page-card,
  html body .for-forgot .page-card {
    padding: 26px 24px 0
  }

  html body .for-login .page-card-head .app-logo,
  html body .for-forgot .page-card-head .app-logo {
    height: 44px;
    margin-bottom: 24px
  }

  html body .for-login .page-card-head h4::before,
  html body .for-forgot .page-card-head h4::before {
    font-size: 30px
  }

  html body .for-login .page-card .page-card-body input.form-control,
  html body .for-forgot .page-card .page-card-body input.form-control,
  html body .for-login .page-card .page-card-body .email-field:has(input:placeholder-shown)::after,
  html body .for-login .page-card .page-card-body .password-field:has(input:placeholder-shown)::after,
  html body .for-forgot .page-card .page-card-body .email-field:has(input:placeholder-shown)::after {
    font-size: 16px
  }

  html body .for-login,
  html body .for-forgot {
    margin: 24px auto;
    padding-bottom: 36px
  }
}

/* phones and narrow windows (option C): the plant photo fills the screen and fades to navy towards the bottom; the form sits on it with no card */
@media (max-width:899px) {

  html:has(.for-login) body,
  html:has(.for-forgot) body {
  background: #09162a
  }

  html:has(.for-login) body::before,
  html:has(.for-forgot) body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(9, 22, 38, .12) 0%, rgba(9, 22, 38, .62) 30%, rgba(9, 22, 38, .93) 55%, #09162a 100%), url(/assets/refex/images/login-mobile.jpg) 40% top/cover no-repeat, #09162a url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQsJCAwLCgsODQwOEh4UEhEREiUbHBYeLCcuLisnKyoxN0Y7MTRCNCorPVM+QkhKTk9OLztWXFVMW0ZNTkv/2wBDAQ0ODhIQEiQUFCRLMisyS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0v/wAARCAAxADADASIAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAAAwUAAgYE/8QAMBAAAgEDAwICCQQDAAAAAAAAAQIDAAQRBRIhIjEzQRMUMkJRcXKBwQYjNFNhkeH/xAAZAQACAwEAAAAAAAAAAAAAAAADBQABAgT/xAAfEQACAwACAwEBAAAAAAAAAAABAgADESExBBORUYH/2gAMAwEAAhEDEQA/AFiWpIyO1XFtk8V3xWqhck+XnxXQqRwrudGfsOmnPsAiwVEkCJ2tD5irR6YZGADKCea0iQW+MOck9j8KHJYEjckg2/E0N/JzsZDV+IGO6D/Yhe0jgxtfLDzx3oLW27kAlq0MdlufYuJX/wB4ol9aJZSKCwGRyAO9B95JwD7Og0IByfk6JrVPU5CiB+g9JHejXloq2YdXEfs5JGB3HFc73SX9pJBZn0ruCOk4xS/VvWUkKXUp9A0Z/b3DAI7Glld7ueIwsrrUDY8iFpLIY45Y5HHuq4zVZ7Ru3OPhmsNptwbDUxdxyjsRnHSPnTGw/UF7LqJaSZRAG98nBruDt2YuITqadruHRrMSGF3llJG4Y4pbNHJdASNnr6sHyqupaomookEQBI/rO4Ue6vGsdNjVwiygYy3NCrsYMWbswrIrKFB4ExWn6uluF3s8RzjdH+a0C20N1CDHqCnd1EleawauBkYDJnGMcj5USOZkbKSugXkH/lCNSyw37Ns+kWeYo1ulI99j04+1GvRDaRrbW1vHcLjxBz+KyVvr0qDbONy479811DUEl5Rtv0n8VlqFYYZtbMO5Guj3DWup3LrbSxxMvSXGamqSz3xICnBPcjsKUtdTr7EwP+DxVTqlwvDijAZBk8ZEbeAv1UDzP01KlSVDQ+Cv3qQe0PnUqVJI0fwlq0v8epUqxIZ//9k=) 40% top/cover no-repeat
  }

  html body .for-login,
  html body .for-forgot {
    width: min(460px, calc(100vw - 40px)) !important;
    margin: max(28px, calc(100vh - 600px)) auto 0 !important;
    margin-top: max(28px, calc(100svh - 600px)) !important;
    padding: 0 0 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    overflow: visible
  }

  html body .for-login .page-card-head,
  html body .for-forgot .page-card-head,
  html body .for-login .page-card,
  html body .for-forgot .page-card {
    padding-left: 0 !important;
    padding-right: 0 !important
  }

  html body .for-login .page-card-head,
  html body .for-forgot .page-card-head {
    padding-top: 0 !important
  }

  html body .for-login .page-card .page-card-body input.form-control,
  html body .for-forgot .page-card .page-card-body input.form-control {
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px)
  }

  html body .for-login .sign-up-message,
  html body .for-forgot .sign-up-message {
    padding-left: 0;
    padding-right: 0
  }
}

@media (prefers-reduced-motion:reduce) {

  html body .for-login .page-card .form-control,
  html body .for-forgot .page-card .form-control {
    transition: none
  }
}
/* the short splash Frappe shows between signing in and opening the apps: same photo, logo centred on a frosted disc */
html:has(body > .splash) body{min-height:100vh;margin:0;background:url(/assets/refex/images/login-bg4.jpg) center/cover no-repeat, #0b1e2d url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQsJCAwLCgsODQwOEh4UEhEREiUbHBYeLCcuLisnKyoxN0Y7MTRCNCorPVM+QkhKTk9OLztWXFVMW0ZNTkv/2wBDAQ0ODhIQEiQUFCRLMisyS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0v/wAARCAAkAEADASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAAQCBQYBAwf/xAAoEAACAQMDBAICAwEAAAAAAAABAgMABBEFEiExQVFhExQGIjJScYH/xAAZAQACAwEAAAAAAAAAAAAAAAAAAgEDBAX/xAAiEQACAgEDBAMAAAAAAAAAAAAAAQIRAxMhMQQUMkESIuH/2gAMAwEAAhEDEQA/AKCNBjDYH+1Pao7inLuzeCPJGfdJhD4ro6qe6ZieCS2kjoVO5r1hiSQ8GoCKrbRbMy7yuOKlZkuWGg3skLJZ7jhRmpNpjHqOPNXf05BBLIpI2EjKDninxbyqnO3b3GKbuL8Q7ZLzsyw06FF7s/8AWoNp7ueUI8ZNaZbb5ZwqxpGO7N2FeeovCEWK0AcIf5jByaqeWblRfp4oxv8AA1xYhp4IkifJBypBrMsUHcVmVvZA5Cyfp6bIFS+7k4+WuTg6aeNU5G3JnUndGgaRB3FW34/fW8DSCVwCxGB5rFfZyM/Jx5rsV60Uisj5HcGtE8cnFqyqOVKV0fQ7+5u4IWG5Y4pWbJyNwB6Yql0/Xrqye5eSYzh1/QOSQD6pGy1qyeIpexyI/QlXOMVZwy6WXSRYSyKOAGzz5pYfKHonJJ5HdljY/kKyWjG9RFmYEBQeefVdhkWx053mjAy2U3cVQ390blgTNEpDhhuTBAFe19d/fXDXChfVPFyf2apivZVyYaE/LKoIA3nnbxTl1hD8SKoVR45oop/YnoShleSREY/qxwRT12gVlVeBnpRRULgGKiRhjnoOPVSimkjUMjkEjJA6UUUAWNtcSSxnfg/8odQYy44PqiipA//Z) center/cover no-repeat}
html body > .splash{position:fixed!important;inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;margin:0!important;transform:none!important;display:flex;align-items:center;justify-content:center;background:rgba(9,22,38,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html body > .splash img{content:url(/assets/refex/images/refex-one-logo-hd.png?v=3);max-width:min(320px,70vw)!important;max-height:none!important;width:auto;height:auto;filter:none}

/* once login_extras.js has set real placeholders, drop the drawn labels and show the placeholders instead;
   the browser hides a real placeholder while it previews autofill, so nothing overlaps the preview text */
html.login-placeholders .for-login .page-card .page-card-body .email-field::after,html.login-placeholders .for-login .page-card .page-card-body .password-field::after,html.login-placeholders .for-forgot .page-card .page-card-body .email-field::after{content:none!important}
html.login-placeholders .for-login .page-card .page-card-body input.form-control::placeholder,html.login-placeholders .for-forgot .page-card .page-card-body input.form-control::placeholder{color:rgba(255,255,255,.92)!important;opacity:1}

/* the browser's autofill preview (while a saved login is hovered) gets the same glass, so the field never turns dark */
html body .for-login .page-card .page-card-body input.form-control:autofill,html body .for-forgot .page-card .page-card-body input.form-control:autofill{background-color:rgba(255,255,255,.13)!important;transition:background-color 9999999s ease-out 0s}
html body .for-login .page-card .page-card-body input.form-control:-internal-autofill-previewed,html body .for-forgot .page-card .page-card-body input.form-control:-internal-autofill-previewed{-webkit-text-fill-color:#fff!important}

/* phones: three sign-in option buttons side by side when there is room, wrapping otherwise */
@media (max-width:520px) {
  html body .for-login .page-card .login-button-wrapper {
    flex-basis: 86px
  }
}

/* older browsers without :has() (for example Firefox before 121) skip every rule above that uses it, so they get a
   plain, readable dark card instead. refex-login-page is set by login_extras.js, so other pages are not affected. */
@supports not selector(:has(*)) {

  html.refex-login-page body,
  html.refex-login-page .page-content-wrapper,
  html.refex-login-page main.container {
    background: #0e2a44 !important
  }

  html.refex-login-page .navbar,
  html.refex-login-page .web-footer {
    display: none !important
  }

  html body .for-login,
  html body .for-forgot {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    box-sizing: border-box !important;
    width: min(460px, calc(100vw - 32px)) !important;
    height: auto !important;
    margin: 40px auto !important;
    padding: 32px 24px !important;
    overflow: visible !important;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #fff
  }

  html body .for-login .page-card-head,
  html body .for-forgot .page-card-head,
  html body .for-login .page-card,
  html body .for-forgot .page-card {
    padding: 0 !important;
    background: none !important
  }

  html body .for-login .page-card-head .app-logo,
  html body .for-forgot .page-card-head .app-logo {
    width: auto !important;
    max-width: 100%;
    height: 44px !important;
    margin: 0 0 20px !important
  }

  html body .for-login .page-card .page-card-body .form-group,
  html body .for-forgot .page-card .page-card-body .form-group {
    margin-bottom: 14px !important
  }

  /* the glass sizes use --u, which is only set by rules with :has() */
  html body .for-login .page-card .page-card-body .login-options .remember-me input {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px;
    -webkit-appearance: auto;
    appearance: auto
  }

  html body .for-login .page-card .page-card-body .email-field,
  html body .for-login .page-card .page-card-body .password-field,
  html body .for-forgot .page-card .page-card-body .email-field {
    position: relative !important
  }

  html body .for-login .page-card .page-card-body .field-icon,
  html body .for-forgot .page-card .page-card-body .field-icon {
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    color: #fff
  }

  html body .for-login .page-card .page-card-body input.form-control,
  html body .for-forgot .page-card .page-card-body input.form-control {
    height: 44px !important;
    padding: 0 14px 0 40px !important;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    font-size: 15px !important
  }

  html body .for-login .page-card .btn-login,
  html body .for-forgot .page-card .btn-forgot {
    height: 44px !important;
    margin-top: 8px
  }
}
