/* ============================================================================
   hrms-login-skin.css - the sign-in page, in the landing page's sign-in design.

   The login screen (/login) keeps its own logic and markup (React). This file only changes how
   it looks, to match the sign-in box on the landing page: a white two-column card, a blue-green
   brand panel on the left (added by hrms-login-skin.js), pill-less fields, a role dropdown with
   coloured badges, a gradient Sign in button, then "or" and Google. Light styling in both themes.
   Everything is scoped to .auth-wrap, so no other page is touched.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

.auth-wrap {
  --teal: #1f93f2;
  --teal-d: #1672c2;
  --green: #13a87e;
  --ink: #1c3144;
  --mute: #566a7a;
  --mint: #f1f8fc;
  --line: #d9e8f1;
  --head: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
  align-items: center;
  font-family: var(--body);
  background:
    linear-gradient(160deg, rgba(22, 92, 160, 0.96), rgba(18, 114, 136, 0.93) 62%, rgba(30, 134, 84, 0.9)),
    url('/landing/assets/img/hero.jpg') center / cover fixed;
}

/* ---- the card: two columns, brand panel + form ---- */
.auth-wrap .auth-card {
  width: 100%;
  max-width: 880px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 60px 110px -30px rgba(0, 0, 0, 0.55);
  animation: hrmsLoginPop 0.45s cubic-bezier(0.2, 0.8, 0.25, 1.12);
}
@keyframes hrmsLoginPop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
}
.auth-wrap .auth-card > .hrms-mside {
  grid-column: 1;
  grid-row: 1 / span 14;
}
.auth-wrap .auth-card > *:not(.hrms-mside) {
  grid-column: 2;
  margin-inline: 40px;
  min-width: 0;
}
/* the logo and name live in the brand panel, so the form column starts with the title */
.auth-wrap .auth-brand {
  display: none;
}
.auth-wrap .auth-title {
  margin: 46px 40px 0;
  text-align: left;
  font-family: var(--head);
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-d);
}
.auth-wrap .auth-sub {
  margin: 4px 40px 22px;
  text-align: left;
  font-size: 14px;
  color: var(--mute);
}
.auth-wrap .auth-msg {
  font-family: var(--body);
}
.auth-wrap .auth-msg.error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.auth-wrap .auth-msg.success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

/* ---- the form: fields, then Sign in, then "or", then Google ---- */
.auth-wrap .auth-card form {
  display: flex;
  flex-direction: column;
}
.auth-wrap .auth-field {
  margin-bottom: 13px;
}
.auth-wrap .auth-label {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #2b4a45;
}
.auth-wrap .auth-input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f7fcf9;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.auth-wrap .auth-input::placeholder {
  color: #8a9aa6;
}
.auth-wrap .auth-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 147, 242, 0.18);
}
.auth-wrap .auth-forgot {
  color: var(--teal-d);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
}
.auth-wrap .auth-eye {
  color: var(--teal-d);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
}
.auth-wrap .auth-btn {
  order: 1;
  height: 50px;
  margin-top: 6px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--teal));
  background-size: 200% 100%;
  color: #fff;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 14px 28px -14px rgba(20, 96, 170, 0.7);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
}
.auth-wrap .auth-btn:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-2px);
  animation: hrmsLoginShine 1.2s linear infinite;
}
@keyframes hrmsLoginShine {
  to {
    background-position: -200% 0;
  }
}
/* a button that sits directly in the card (the reset-password screen) fills its column, not more */
.auth-wrap .auth-card > .auth-btn {
  width: auto;
  margin-bottom: 36px;
}
.auth-wrap #hrms-google-divider {
  order: 2;
  margin: 14px 0 !important;
}
.auth-wrap #hrms-google-divider > div {
  background: var(--line) !important;
}
.auth-wrap #hrms-google-divider > span {
  color: #8aa69e !important;
  font-family: var(--body);
}
.auth-wrap #hrms-google-btn {
  order: 3;
  height: 48px;
  padding: 0 16px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--body) !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.auth-wrap #hrms-google-btn:hover {
  background: var(--mint) !important;
}
.auth-wrap .hrms-secure {
  order: 4;
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--mute);
}
.auth-wrap .auth-switch {
  margin-top: 18px;
  margin-bottom: 36px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--mute);
}
.auth-wrap .auth-switch button {
  color: var(--teal-d);
  font-family: var(--body);
  font-weight: 700;
}
.auth-wrap .auth-hint {
  color: var(--mute);
  border-top-color: var(--line);
}

/* ---- the brand panel (added by hrms-login-skin.js) ---- */
.hrms-mside {
  border-radius: 26px 0 0 26px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(22, 92, 160, 0.94), rgba(18, 114, 136, 0.9) 68%, rgba(30, 134, 84, 0.83)),
    url('/landing/assets/img/onboarding.jpg') center / cover;
}
.hrms-mside .hm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}
.hrms-mside .hm-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
.hrms-mside .hm-brand b {
  color: #c4f7d8;
}
.hrms-mside blockquote {
  margin: 0;
  font-family: var(--head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.hrms-mside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hrms-mside li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: #effcf4;
}
.hrms-mside li b {
  min-width: 74px;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.hrms-mside .hm-back {
  align-self: flex-start;
  color: #c4f7d8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hrms-mside .hm-back:hover {
  text-decoration: underline;
}

/* ---- role dropdown (added by hrms-login-skin.js; the real <select> stays, hidden, and is kept in step) ---- */
.auth-wrap .hrms-rolenative {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.auth-wrap .hrms-rolef {
  position: relative;
  z-index: 5;
}
.hrms-rolebtn {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f7fcf9;
  color: #8a9aa6;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.hrms-rolebtn.has {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.hrms-rolebtn:hover {
  border-color: #b9d3e6;
}
.hrms-rolebtn:focus-visible,
.hrms-rolebtn[aria-expanded='true'] {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 147, 242, 0.18);
}
.hrms-rico {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c, #c9d6e2);
  color: #fff;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hrms-rolebtn:not(.has) .hrms-rico {
  background: #e3ecf3
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9aa6' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  font-size: 0;
}
.hrms-rtxt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hrms-rchev {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--mute);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hrms-rolebtn[aria-expanded='true'] .hrms-rchev {
  transform: rotate(180deg);
}
.hrms-rolepop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  max-height: 272px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 24px 44px -18px rgba(10, 50, 90, 0.5),
    0 2px 6px rgba(10, 50, 90, 0.06);
  transform-origin: top center;
  animation: hrmsRdown 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-width: thin;
  scrollbar-color: #c9dbe8 transparent;
}
.hrms-rolepop[hidden] {
  display: none;
}
.hrms-rolepop.closing {
  animation: hrmsRup 0.17s ease-in both;
  pointer-events: none;
}
@keyframes hrmsRdown {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.92);
    clip-path: inset(0 0 100% 0 round 14px);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0 round 14px);
  }
}
@keyframes hrmsRup {
  to {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.94);
    clip-path: inset(0 0 100% 0 round 14px);
  }
}
.hrms-ropt {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: hrmsRitem 0.24s ease both;
  animation-delay: calc(var(--k, 0) * 26ms + 60ms);
  transition:
    background 0.15s,
    padding-left 0.2s;
}
.hrms-ropt + .hrms-ropt {
  margin-top: 1px;
}
@keyframes hrmsRitem {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hrms-ropt .hrms-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}
.hrms-ropt:hover,
.hrms-ropt:focus-visible {
  outline: none;
  padding-left: 16px;
  background: color-mix(in srgb, var(--c) 9%, #fff);
}
.hrms-ropt[aria-selected='true'] {
  background: color-mix(in srgb, var(--c) 12%, #fff);
}
.hrms-ropt[aria-selected='true']::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  .auth-wrap .auth-card,
  .hrms-rolepop,
  .hrms-ropt {
    animation: none !important;
    opacity: 1;
  }
}

/* ---- phones and small tablets: single column, no brand panel (the logo shows above the title) ---- */
@media (max-width: 760px) {
  .auth-wrap {
    padding: 14px;
    align-items: start;
  }
  .auth-wrap .auth-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .auth-wrap .auth-card > .hrms-mside {
    display: none;
  }
  .auth-wrap .auth-card > *:not(.hrms-mside) {
    grid-column: 1;
    margin-inline: 22px;
  }
  .auth-wrap .auth-brand {
    display: flex;
    justify-content: flex-start;
    margin: 28px 22px 0;
    font-family: var(--body);
  }
  .auth-wrap .auth-brand-name {
    font-family: var(--body);
    font-weight: 800;
    color: var(--teal-d);
  }
  .auth-wrap .auth-title {
    margin: 18px 22px 0;
    font-size: 24px;
  }
  .auth-wrap .auth-sub {
    margin: 4px 22px 18px;
  }
  .auth-wrap .auth-switch {
    margin-bottom: 28px;
  }
}

/* ---- pop-up mode: this screen inside the landing page's sign-in frame (/login?embed=1) ----
   The page is see-through so the landing page (dimmed and blurred by its own overlay) shows
   behind the card, and the card gets the round close button from the landing design. */
html.hrms-embed,
html.hrms-embed body,
html.hrms-embed #root {
  background: transparent !important;
  color-scheme: light;
}
html.hrms-embed .auth-wrap {
  background: transparent;
}
.auth-wrap .auth-card {
  position: relative;
}
.auth-wrap .auth-card > .hrms-lclose {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-d);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s;
}
.auth-wrap .auth-card > .hrms-lclose:hover {
  transform: rotate(90deg);
}

/* Back to home link for phones (the side panel that holds the desktop one is hidden there) */
.auth-wrap .auth-card > .hm-home { display: none; }
@media (max-width: 760px) {
  .auth-wrap .auth-card > .hm-home {
    display: block;
    text-align: center;
    margin: 4px 22px 20px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal-d, #0a8a6a);
    text-decoration: none;
  }
  .auth-wrap .auth-card > .hm-home:hover { text-decoration: underline; }
}
