/* ExpatPro authentication shell. Page-specific colors and accents live in each route CSS. */
.exp-auth-shell,
.exp-auth-shell * { box-sizing: border-box; }
.exp-auth-shell {
  --auth-ink: #14243b;
  --auth-muted: #5c6d83;
  --auth-line: #d5dfeb;
  --auth-blue: #255db6;
  --auth-gold: #e6bd69;
  --auth-pale: #f5f7fb;
  --auth-white: #fff;
  --auth-ease: cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  color: var(--auth-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.exp-auth-shell a { text-decoration: none; }
.exp-auth-shell a:hover { text-decoration: none; }
.exp-auth-story {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  padding: clamp(30px, 5.5vw, 94px);
  background: radial-gradient(ellipse at 88% 70%, #26579f 0%, transparent 45%), linear-gradient(145deg, #071a31 2%, #123967 68%, #1c4b88 100%);
}
.exp-auth-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(86%, 620px);
  aspect-ratio: 1;
  right: -23%;
  bottom: -27%;
  border: 1px solid rgba(215, 233, 255, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(190, 219, 255, .035), 0 0 0 145px rgba(190, 219, 255, .025);
  animation: exp-auth-orbit 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.exp-auth-story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 18% 18%, rgba(117, 182, 239, .13), transparent 52%);
  pointer-events: none;
}
.exp-auth-story__inner { width: 100%; max-width: 550px; margin: auto 0; }
.exp-auth-logo { display: inline-flex; align-items: center; min-height: 56px; margin-bottom: clamp(40px, 9vh, 110px); }
.exp-auth-logo img { display: block; width: auto; max-width: min(225px, 55vw); max-height: 72px; object-fit: contain; }
.exp-auth-eyebrow {
  display: block;
  margin: 0 0 20px;
  color: var(--auth-gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.exp-auth-story h1 {
  max-width: 580px;
  margin: 0;
  color: var(--auth-white);
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.exp-auth-story h1 em { color: var(--auth-gold); font-style: normal; }
.exp-auth-story__lead {
  max-width: 470px;
  margin: 24px 0 0;
  color: #c7d9ee;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
}
.exp-auth-story__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(50px, 11vh, 128px);
  color: #c7d9ee;
  font-size: 12px;
  letter-spacing: .04em;
}
.exp-auth-story__meta::before { content: ""; width: 28px; height: 1px; background: var(--auth-gold); }
.exp-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  background: var(--auth-pale);
}
.exp-auth-form-inner { width: 100%; max-width: 470px; animation: exp-auth-enter .65s var(--auth-ease) both; }
.exp-auth-context {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #315d97;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.exp-auth-context::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #47aa99; box-shadow: 0 0 0 4px rgba(71,170,153,.13); }
.exp-auth-form-inner h2 {
  margin: 17px 0 8px;
  color: var(--auth-ink);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.exp-auth-intro { max-width: 430px; margin: 0 0 32px; color: var(--auth-muted); font-size: 15px; line-height: 1.65; }
.exp-auth-form { display: grid; gap: 18px; margin: 0; }
.exp-auth-field { position: relative; min-width: 0; }
.exp-auth-field input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 22px 52px 8px 17px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  outline: none;
  background: var(--auth-white);
  box-shadow: 0 3px 12px rgba(17, 44, 78, .03);
  color: var(--auth-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--auth-ease);
}
.exp-auth-field input:hover { border-color: #98b2d3; }
.exp-auth-field input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(37, 93, 182, .11); }
.exp-auth-field label {
  position: absolute;
  top: 18px;
  left: 17px;
  color: #536981;
  font-size: 15px;
  line-height: 1.4;
  transform-origin: left top;
  pointer-events: none;
  transition: transform .18s ease, top .18s ease, color .18s ease;
}
.exp-auth-field input:focus + label,
.exp-auth-field input:not(:placeholder-shown) + label {
  top: 8px;
  color: var(--auth-blue);
  transform: scale(.74);
}
.exp-auth-field .exp-auth-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5b6e84;
  cursor: pointer;
}
.exp-auth-toggle:hover { background: #edf3fb; color: var(--auth-blue); }
.exp-auth-toggle svg { display: block; width: 19px; height: 19px; }
.exp-auth-toggle .exp-eye-off { display: none; }
.exp-auth-toggle.is-visible .exp-eye-on { display: none; }
.exp-auth-toggle.is-visible .exp-eye-off { display: block; }
.exp-auth-field-hint { margin: 6px 0 0; color: #bd3744; font-size: 12px; }
.exp-auth-form .text-danger { color: #b83543; font-size: 12px; }
.exp-auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.exp-auth-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--auth-muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.exp-auth-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--auth-blue); }
.exp-auth-link { color: var(--auth-blue); font-size: 13px; font-weight: 650; }
.exp-auth-link:hover { color: #174583; text-decoration: underline; }
.exp-auth-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #174b97;
  border-radius: 12px;
  background: linear-gradient(115deg, #174b97, #2565bd);
  box-shadow: 0 12px 22px rgba(23, 75, 151, .17);
  color: var(--auth-white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--auth-ease), box-shadow .2s ease, background .2s ease;
}
.exp-auth-button:hover { transform: translateY(-2px); box-shadow: 0 16px 26px rgba(23,75,151,.23); color: var(--auth-white); }
.exp-auth-button:active { transform: translateY(0); }
.exp-auth-button:disabled { cursor: wait; opacity: .82; }
.exp-auth-button.is-loading .exp-btn-text { opacity: 0; }
.exp-auth-button .exp-btn-spinner { display: none; position: absolute; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--auth-white); border-radius: 50%; animation: exp-auth-spin .65s linear infinite; }
.exp-auth-button.is-loading .exp-btn-spinner { display: block; }
.exp-auth-separator { display: flex; align-items: center; gap: 14px; margin: 29px 0 20px; color: #8392a5; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.exp-auth-separator::before,
.exp-auth-separator::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.exp-auth-switch { margin: 0; color: var(--auth-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.exp-auth-switch a { color: var(--auth-blue); font-weight: 700; }
.exp-auth-switch a:hover { text-decoration: underline; }
.exp-auth-recaptcha { margin: 0; overflow: auto; max-width: 100%; }
.exp-auth-alert { display: block; margin: 0 0 18px; padding: 13px 16px; border: 1px solid #f4c4c9; border-radius: 10px; background: #fff0f1; color: #852632; font-size: 13px; line-height: 1.55; }
.exp-auth-alert--success { border-color: #bce6d7; background: #edf9f4; color: #17644c; }
.exp-auth-alert--warning { border-color: #ead79e; background: #fff9e8; color: #70581a; }
.exp-auth-skip { position: absolute; z-index: 1000; top: -80px; left: 12px; padding: 10px 14px; border-radius: 8px; background: #fff; color: #14243b; }
.exp-auth-skip:focus { top: 12px; }
.exp-auth-shell :focus-visible { outline: 3px solid var(--auth-gold); outline-offset: 3px; }
@keyframes exp-auth-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes exp-auth-orbit { from { transform: translate3d(-10px, 8px, 0); } to { transform: translate3d(12px, -14px, 0); } }
@keyframes exp-auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .exp-auth-shell { grid-template-columns: 1fr; }
  .exp-auth-story { min-height: 220px; padding: 26px clamp(22px, 5vw, 50px); }
  .exp-auth-story__inner { max-width: none; }
  .exp-auth-logo { margin-bottom: 20px; min-height: 0; }
  .exp-auth-logo img { max-height: 47px; max-width: 180px; }
  .exp-auth-story h1 { font-size: clamp(28px, 5vw, 40px); }
  .exp-auth-story__lead { margin-top: 10px; font-size: 14px; }
  .exp-auth-story__meta { display: none; }
  .exp-auth-form-panel { align-items: flex-start; padding: 36px clamp(22px, 5vw, 50px) 55px; }
  .exp-auth-form-inner { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 540px) {
  .exp-auth-story { min-height: 160px; padding: 20px; }
  .exp-auth-logo { margin-bottom: 12px; }
  .exp-auth-logo img { max-height: 37px; max-width: 150px; }
  .exp-auth-eyebrow { margin-bottom: 8px; font-size: 10px; }
  .exp-auth-story h1 { font-size: 27px; letter-spacing: -.025em; }
  .exp-auth-story__lead { display: none; }
  .exp-auth-form-panel { padding: 27px 20px 40px; }
  .exp-auth-form-inner h2 { font-size: 29px; margin-top: 11px; }
  .exp-auth-intro { margin-bottom: 23px; font-size: 14px; }
  .exp-auth-form { gap: 15px; }
  .exp-auth-separator { margin: 22px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .exp-auth-shell *, .exp-auth-shell *::before, .exp-auth-shell *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Perfex client theme wraps auth views inside a Bootstrap container and row. */
body.exp-client-login { margin: 0; min-height: 100vh; background: #f5f7fb; overflow-x: hidden; }
body.exp-client-login > nav,
body.exp-client-login .navbar,
body.exp-client-login .navbar-default,
body.exp-client-login .navbar-fixed-top,
body.exp-client-login > footer,
body.exp-client-login footer.footer { display: none !important; }
body.exp-client-login #wrapper,
body.exp-client-login #wrapper #content,
body.exp-client-login #wrapper #content > .container,
body.exp-client-login #wrapper #content > .container > .row { width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0; background: transparent; }
body.exp-client-login .exp-auth-story__lead { color: #c7d9ee !important; -webkit-text-fill-color: #c7d9ee !important; }
