/* Sign-in page styles: copied unchanged from jack-admin (wwwroot/login.html), which matches app.medikarma.com/login (DOCUMENT-0129). */
@font-face { font-family: Lato; font-weight: 400; src: url(/signin/Lato-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lato; font-weight: 500; src: url(/signin/Lato-Medium.woff) format("woff"); font-display: swap; }
@font-face { font-family: Lato; font-weight: 700; src: url(/signin/Lato-Bold.woff) format("woff"); font-display: swap; }
:root { --ink: #0f0f10; --line: #b9b9c3; --teal: #3bc9ac; --muted: #6b6b76; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #ffffff; color: var(--ink); font-family: Lato, Arial, sans-serif; }
header { height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; box-shadow: 0 4px 14px rgba(178, 179, 187, .2); position: relative; z-index: 2; }
header img { height: 24px; width: auto; display: block; }
.lang { position: relative; }
.langbtn { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid #e3e3e8; border-radius: 6px; background: #fff; font: 500 13px Lato, Arial, sans-serif; color: var(--ink); cursor: pointer; }
.langbtn svg { display: block; }
.langmenu { position: absolute; top: 34px; right: 0; min-width: 120px; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #e3e3e8; border-radius: 6px; box-shadow: 0 12px 26px rgba(178, 179, 187, .3); }
.langmenu button { width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 4px; font: 400 14px Lato, Arial, sans-serif; color: var(--ink); cursor: pointer; }
.langmenu button:hover, .langmenu button[aria-checked="true"] { background: #effaf7; }
main { padding: 30px 38px 40px; }
.card { margin: 0 auto; background: #fff; border-radius: 6px; box-shadow: 0 12px 26px rgba(178, 179, 187, .2); padding: 12px 24px 56px; display: flex; flex-direction: column; align-items: center; }
.avatar { width: 98px; height: 98px; display: block; }
h1 { margin: 28px 0 0; font-size: 24px; font-weight: 700; text-align: center; }
.divider { width: 335px; max-width: 100%; height: 1px; background: #e5e5ea; margin: 34px 0 40px; }
form { width: 335px; max-width: 100%; display: flex; flex-direction: column; }
.field { position: relative; margin-bottom: 12px; }
.field input { width: 100%; height: 58px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font: 400 17px Lato, Arial, sans-serif; color: var(--ink); background: #fff; }
.field input::placeholder { color: #8a8a94; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.field input[aria-invalid="true"] { border-color: #e0475c; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #6b6b76; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 26px; font-size: 15px; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.row a { color: var(--ink); text-decoration: none; }
.row a:hover { text-decoration: underline; }
.login { height: 60px; border: 0; border-radius: 6px; background: linear-gradient(199.39deg, #43d08e 3.59%, #32c5c8 86.98%); color: #fff; font: 500 18px Lato, Arial, sans-serif; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.login:hover { filter: brightness(1.04); }
.login:disabled { opacity: .6; cursor: default; }
.login:focus-visible, .langbtn:focus-visible, .eye:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.signup { margin: 18px 0 0; text-align: center; font-size: 15px; }
.signup a { color: var(--teal); text-decoration: none; margin-left: 4px; }
.signup a:hover { text-decoration: underline; }
.error { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: #fff1f3; color: #b4233c; font-size: 14px; line-height: 1.4; }
.hint { margin: -4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.4; }
/* Environment bar: one spec on app, JACK and Admin (Lato 13px, bold 700, 34px). Its own font faces, so it never falls back. */
@font-face { font-family: "MK Envbar"; font-weight: 400; src: url(/signin/Lato-Regular.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "MK Envbar"; font-weight: 700; src: url(/signin/Lato-Bold.woff) format("woff"); font-display: block; }
.envbar { height: 34px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; background: repeating-linear-gradient(-45deg, #f59f00 0 14px, #fab005 14px 28px); color: #2b1700; font: 400 13px/normal "MK Envbar", Arial, sans-serif; letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; }
.envbar strong { font-weight: 700; letter-spacing: .08em; }
@media (max-width: 760px) { .envbar span { display: none; } }
.envbar[hidden] { display: none; }
/* "Sign in with ID.me" first, the email form under "Other ways to sign in" (DOCUMENT-0098). */
.idmebox { width: 335px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; }
.idme { align-self: center; display: block; border-radius: 12px; line-height: 0; text-decoration: none; cursor: pointer; }
.idme img { display: block; width: 190px; height: 56px; }
.idme .hover, .idme:hover .default { display: none; }
.idme:hover .hover { display: block; }
.idme:focus-visible, .other:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.other { margin: 22px auto 0; border: 0; background: none; color: var(--ink); font: 400 15px Lato, Arial, sans-serif; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.other:hover { text-decoration: underline; }
.idmebox .error { margin: 0 0 14px; }
.idmebox + form { margin-top: 22px; }
[hidden] { display: none !important; }
/* Layout matched to app.medikarma.com/login, the approved reference (front: OutsidePage, Header,
   LanguageSwitcher, Login, SupportButton). Page padding 16px, 40px from 768px, 24px from 1366px; header 48px,
   60px from 1366px with the logo left and the language right; card up to 1170px wide. */
html, body { height: 100%; }
body { display: flex; flex-direction: column; overflow: hidden; background: #fafafa; }
.envbar, .mk-envbar { flex-shrink: 0; }
header { flex: 0 0 auto; height: 48px; padding: 0 16px; gap: 0; box-shadow: 0 12px 26px rgba(178, 179, 187, .2); }
header > img { width: 198px; height: 27px; }
.lang { margin: 8px; }
.langbtn { height: auto; gap: 0; padding: 6px; border: 1px solid rgba(185, 185, 195, .4); font: 500 14px Lato, Arial, sans-serif; }
.langbtn .globe { width: 25px; height: 25px; flex-shrink: 0; }
.langbtn #langcode { margin-left: 8px; line-height: normal; }
.langbtn .chev { width: 24px; height: 24px; margin-left: 3px; transition: transform .2s ease; }
.langbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* Like the app, only the area under the header scrolls. */
main { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; align-items: flex-start; padding: 16px; }
.card { flex: 0 1 1170px; max-width: 100%; min-height: 100%; margin: 0 auto; padding: 16px; }
.card > .avatar { width: 116px; height: 116px; margin: 0 0 32px; }
h1 { margin: 0 0 8px; line-height: 1.2; }
.divider { display: none; }
.idmebox { width: 430px; padding-top: 18.4px; }
.idmebox .idme { margin-bottom: 16px; }
.other { margin: 8px auto 0; padding: 8px; gap: 0; color: var(--teal); font: 400 14px/1.15 Lato, Arial, sans-serif; text-decoration: underline; }
.other #chevron { margin-left: 6px; }
@media (min-width: 768px) { main { padding: 40px; } }
@media (min-width: 1366px) {
  header { height: 60px; justify-content: space-between; padding: 0 max(24px, calc((100% - 1170px) / 2)); }
  main { padding: 24px; }
  .card { min-height: 800px; margin: auto; }
}
/* Help (front SupportButton): the round button on the left edge, "Help Options" with Support and About. */
.helpfab { position: fixed; top: 73vh; left: -20px; z-index: 1000; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(#45d08f, #32c3c6); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); display: flex; align-items: center; justify-content: center; cursor: pointer; transform: rotate(90deg); }
.helpfab span { display: flex; margin-bottom: 19px; }
.helpfab img { width: 20px; height: 20px; transform: rotate(270deg); }
.helpback { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); }
.helpmenu { position: relative; min-width: 300px; padding: 20px; border-radius: 10px; background: #fff; text-align: center; }
.helpmenu h2 { margin: 0; font: 700 24px/1.15 Lato, Arial, sans-serif; }
.helpclose { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 1px 6px; border: 0; background: transparent; font: 700 24px/1.15 Lato, Arial, sans-serif; color: #000; cursor: pointer; }
.helprow { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 12px; }
.helprow button { width: 155px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 6px; background: linear-gradient(199.39deg, #43d08e 3.59%, #32c5c8 86.98%); color: #fff; font: 900 12px/1.15 Lato, Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.dlgback { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(23, 30, 31, .3); }
.dlg { position: relative; max-width: 100%; max-height: 90vh; overflow: auto; border-radius: 6px; background: #fff; box-shadow: 0 5px 26px rgba(178, 179, 187, .3); }
.dlgclose { position: absolute; top: 0; right: 0; width: 56px; height: 60px; padding: 0 16px; border: 0; border-radius: 6px; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.about { width: 350px; padding: 16px; }
.about h2 { margin: 0 0 10px; font: 700 22px/1.2 Lato, Arial, sans-serif; text-align: center; }
.about .sec { margin-top: 10px; padding: 5px; border-radius: 6px; }
.about .sub { font: 700 14px/1.15 Lato, Arial, sans-serif; }
.about .item { font: 400 12px/1.15 Lato, Arial, sans-serif; overflow-wrap: break-word; }
.support { width: 900px; padding: 64px; }
@media (max-width: 480px) { main { padding: 16px; } .card { padding: 12px 16px 40px; } }
