:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #18382d; background: #f2f6f3; font-synthesis: none;
    --blue: #18764c; --muted: #63776b; --border: #dfe9e2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; }
.login-frame { width: 100%; max-width: 460px; margin: auto; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 16px 55px #123c2e0d; overflow: hidden; }
.login-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 28px; border-bottom: 1px solid #eef2f8; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 12px; font-weight: 800; font-size: 26px; position: relative; }
.brand-mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #b9d6ff; right: 7px; bottom: 8px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.account-badge { color: #526b94; font-size: 10px; font-weight: 600; background: #f1f5fc; padding: 7px 10px; border-radius: 20px; }
.login-card { padding: 32px 32px 27px; }
.welcome-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #edf8f0; color: var(--blue); margin-bottom: 23px; }
.welcome-icon svg { width: 27px; height: 27px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #5d7295; margin: 0; }
.form-heading h2 { font-size: 31px; font-weight: 700; line-height: 1.2; letter-spacing: -.9px; margin: 10px 0; }
.form-heading > p:last-child { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0 0 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; color: #365344; }
.field input { width: 100%; height: 54px; border: 1px solid #dce7df; border-radius: 12px; padding: 0 15px; font-size: 16px; color: #18382d; background: #f9fcfa; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #789084; font-size: 14px; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #18764c12; background: #fff; }
.password-field { position: relative; }
.password-field input { padding-right: 73px; }
.password-field button { position: absolute; right: 6px; top: 5px; height: 44px; min-width: 56px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 600; border-radius: 8px; }
.password-field button:hover { background: #edf8f0; }
.sign-in { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; margin-top: 6px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 650; font-size: 15px; box-shadow: 0 5px 12px #18764c18; transition: background .15s; }
.sign-in:hover { background: #125d3b; }
.sign-in:disabled { opacity: .65; cursor: wait; }
.sign-in span:last-child { font-size: 20px; font-weight: 400; }
.account-help { text-align: center; color: #60776a; font-size: 12px; line-height: 1.8; margin: 21px 0 25px; }
.account-help span { color: var(--muted); font-size: 11px; }
.tracking-link { display: flex; align-items: center; gap: 12px; padding: 15px 13px; border: 1px solid var(--border); border-radius: 13px; background: #f9fbff; transition: background .15s; }
.tracking-link:hover { background: #edf8f0; }
.tracking-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #e5f5eb; color: var(--blue); border-radius: 10px; flex-shrink: 0; }
.tracking-icon svg { width: 21px; height: 21px; }
.tracking-link strong { display: block; font-size: 12px; font-weight: 600; color: #315640; }
.tracking-link small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.tracking-arrow { margin-left: auto; color: var(--blue); font-size: 18px; }
.form-footer { text-align: center; color: #748778; font-size: 10px; margin: 25px 0 0; }
.page-footer { text-align: center; color: #748778; font-size: 10px; margin: 22px 0 0; }
.page-footer span { margin: 0 7px; }
.login-error { padding: 13px 15px; border: 1px solid #efc5c5; border-radius: 12px; background: #fff5f5; color: #9b303b; font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
.login-error strong, .login-error span { display: block; }
.field-hint { font-size: 12px; color: #89600d; margin: 8px 0 0; }
.submit-status { margin: 9px 0 0; font-size: 12px; color: var(--blue); }
.submit-status:empty { display: none; }
:focus-visible { outline: 3px solid #8ac7a3; outline-offset: 3px; }
@media (max-width: 520px) {
    :root { background: #fff; }
    .login-shell { padding: 0; justify-content: flex-start; }
    .login-frame { max-width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .login-hero { padding: max(22px, env(safe-area-inset-top)) 24px 20px; }
    .login-card { padding: 32px 26px 24px; }
    .page-footer { margin: auto 0 0; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
    .login-hero { padding-left: 20px; padding-right: 20px; }
    .login-card { padding: 27px 20px 22px; }
    .brand strong { font-size: 17px; }
    .tracking-link { gap: 9px; padding: 13px 10px; }
    .tracking-link small { font-size: 9px; }
}
@media (max-height: 700px) and (max-width: 520px) {
    .welcome-icon { display: none; }
    .login-card { padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep shared portal styling from overriding this app screen. */
body.login-page { color: #18382d !important; background: #f2f6f3 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; }
.login-page .login-frame { border-color: #dfe9e2 !important; box-shadow: 0 16px 55px #123c2e0d !important; }
body.login-page #login-form .field input { border-color: #dce7df !important; border-radius: 12px !important; background: #f9fcfa !important; color: #18382d !important; }
body.login-page #login-form .field input:focus { border-color: #18764c !important; background: #fff !important; box-shadow: 0 0 0 3px #18764c12 !important; }
@media (max-width: 520px) {
    body.login-page { background: #fff !important; }
    .login-page .login-shell { padding-left: 0 !important; padding-right: 0 !important; }
    .login-page .login-frame { box-shadow: none !important; }
}


.login-frame { display: grid; grid-template-columns: 1.08fr 1fr; max-width: 1100px; border-radius: 28px; }
.login-hero { display: flex; flex-direction: column; align-items: stretch; padding: 38px; border: 0; color: #fff; background: linear-gradient(140deg, #133e2f, #092a20); position: relative; overflow: hidden; }
.login-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.login-hero > * { position: relative; }
.brand { align-self: flex-start; }
.brand-mark { background: #ffffff06; color: #d7f6e2; border: 1px solid #6cb88b65; border-radius: 13px; }
.brand-mark span { background: #7eda9c; }
.brand small { color: #a3c8b3; }
.hero-copy { margin-top: 46px; }
.hero-tag { display: inline-block; background: #76d49a13; border: 1px solid #76d49a18; border-radius: 20px; padding: 8px 13px; font-size: 9px; color: #b3e7c3; font-weight: 700; letter-spacing: 1px; margin: 0; }
.hero-copy h1 { margin: 20px 0 15px; font-size: 43px; line-height: 1.14; letter-spacing: -1.6px; font-weight: 700; }
.hero-copy > p:last-child { font-size: 13px; line-height: 1.85; color: #b1cebd; margin: 0; }
.shipment-preview { margin-top: 30px; padding: 22px; border: 1px solid #7bc89920; border-radius: 19px; background: #0c2c22b0; }
.shipment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a1cbb1; font-size: 9px; letter-spacing: 1px; }
.shipment-heading > span { font-size: 18px; color: #70d89a; }
.shipment-art { display: block; width: 100%; height: auto; margin: 13px 0 5px; }
.route-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 9px; color: #a2c7b1; }
.route-pill { color: #acebc2; border: 1px solid #70d89a30; padding: 6px 10px; border-radius: 20px; background: #64d89108; }
.hero-features { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; padding-top: 20px; border-top: 1px solid #ffffff12; }
.hero-features span { color: #c4dfcd; font-size: 10px; background: #ffffff09; padding: 7px 10px; border-radius: 6px; }
.hero-footer { margin-top: auto; padding-top: 28px; font-size: 11px; color: #9ec1ad; }
.hero-footer span { color: #7edda2; margin-right: 7px; }
.login-card { padding: 38px; margin: 0; border-radius: 0; min-width: 0; background-image: linear-gradient(#203d2e02 1px, transparent 1px), linear-gradient(90deg, #203d2e02 1px, transparent 1px); background-size: 26px 26px; }
.welcome-icon { width: 40px; height: 40px; margin-bottom: 20px; border: 1px solid #dceade; background: #edf8ef; color: #328052; }
.welcome-icon svg { width: 23px; height: 23px; }
.eyebrow { color: #708476; font-size: 9px; }
.form-heading h2 { font-size: 32px; }
.form-heading > p:last-child { margin-bottom: 23px; }
.biometric-panel { padding: 13px; border: 1px solid #e0e9e1; border-radius: 14px; background: #f7fbf8b0; margin-bottom: 20px; }
.biometric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.biometric-heading strong { font-size: 9px; letter-spacing: .8px; color: #688171; }
#biometric-badge { color: #318052; background: #eaf6ed; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 600; }
.biometric-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.biometric-option { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: left; border: 1px solid #dfe9e2; border-radius: 10px; min-height: 55px; padding: 10px 8px; background: #fff; color: #37624a; transition: background .15s, border-color .15s; }
.biometric-option:hover { background: #eef8f0; border-color: #8aba9b; }
.biometric-option svg { width: 23px; height: 23px; flex-shrink: 0; color: #4d9670; }
.biometric-option strong { display: block; font-size: 12px; font-weight: 650; }
.biometric-option small { display: block; color: #788d80; font-size: 8px; margin-top: 4px; }
#biometric-status { margin: 10px 0 0; font-size: 9px; color: #708578; line-height: 1.6; }
.form-divider { display: flex; align-items: center; gap: 12px; color: #8b9a8e; font-size: 9px; margin: 19px 0; }
.form-divider::before, .form-divider::after { content: ''; height: 1px; background: #e7ece6; flex: 1; }
.field { margin-bottom: 17px; }
.field input { height: 49px; }
.password-field button { height: 40px; }
.sign-in { height: 49px; background: #143e2b; }
.sign-in:hover { background: #1b533b; }
.account-help { margin: 17px 0 20px; font-size: 11px; }
.tracking-link { background: #f6fbf5; }
.form-footer { font-size: 9px; margin-top: 20px; }
.android-hosted .login-hero { display: none; }
.android-hosted .login-frame { display: block; max-width: 520px; }
#biometric-dialog { width: min(360px, calc(100vw - 32px)); border: 1px solid #65bf882e; border-radius: 22px; background: radial-gradient(circle at 20% 0, #1d4d35, #0b251a 70%); color: #e8f7ed; padding: 30px 25px 25px; text-align: center; box-shadow: 0 25px 90px #0005; }
#biometric-dialog::backdrop { background: #061a16b0; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 14px; right: 14px; border: 0; width: 28px; height: 28px; border-radius: 50%; background: #ffffff0d; color: #acc9b6; font-size: 20px; }
.scan-tag { display: inline-block; color: #82e4a8; background: #5bbf8020; border: 1px solid #6cd49520; padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
#scan-title { font-size: 22px; letter-spacing: -.6px; margin: 16px 0 8px; }
#scan-description { font-size: 11px; line-height: 1.6; color: #a8c4b1; margin: 0; }
.scan-window { width: 176px; height: 176px; margin: 22px auto; border: 1px solid #77c89128; border-radius: 15px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(#6bcc8e23 1px, transparent 1px); background-size: 12px 12px; }
.scan-window svg { width: 77px; height: 77px; color: #68d797; filter: drop-shadow(0 0 10px #50d28b20); }
.scan-corner { position: absolute; width: 17px; height: 17px; border-color: #68d797; border-style: solid; }
.corner-one { left: 13px; top: 13px; border-width: 1px 0 0 1px; }.corner-two { right: 13px; top: 13px; border-width: 1px 1px 0 0; }.corner-three { left: 13px; bottom: 13px; border-width: 0 0 1px 1px; }.corner-four { right: 13px; bottom: 13px; border-width: 0 1px 1px 0; }
.scan-line { position: absolute; left: 13px; right: 13px; top: 25px; height: 1px; background: #65df94; box-shadow: 0 0 12px #65df94a0; animation: scan-sweep 3s ease-in-out infinite alternate; }
.scan-status { font-size: 10px; color: #a0c3ae; line-height: 1.7; margin-bottom: 19px; }
.scan-actions { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8px; }
.scan-actions button { min-height: 43px; border: 1px solid #ffffff0c; border-radius: 10px; background: #ffffff0d; color: #cce6d6; font-size: 11px; font-weight: 600; }
#scan-continue { color: #0d3821; background: #78e7a2; }
#scan-continue:disabled { background: #345744; color: #a3c4af; cursor: default; }
@keyframes scan-sweep { from { transform: translateY(0); opacity: .45; } to { transform: translateY(125px); opacity: 1; } }
@media (max-width: 900px) and (min-width: 761px) { .login-hero,.login-card { padding: 28px; }.hero-copy h1 { font-size: 36px; }.shipment-preview { padding: 16px; } }
@media (max-width: 760px) {
    .login-shell { padding: 20px 12px; }.login-frame { display: block; max-width: 480px; border-radius: 22px; }.login-hero { padding: 24px; }.hero-copy,.shipment-preview,.hero-footer { display: none; }.login-card { padding: 27px 24px; }.welcome-icon { display: none; }.page-footer { padding: 20px 12px; margin: 0; }.form-heading h2 { font-size: 29px; }
}
@media (max-width: 520px) {
    body.login-page { background: #fff !important; }.login-page .login-shell { padding: 0 !important; }.login-frame { border: 0; border-radius: 0; max-width: 100%; }.login-hero { padding-top: max(23px, env(safe-area-inset-top)); padding-bottom: 23px; }.login-card { padding: 27px 24px 22px; }.android-hosted .login-card { padding-top: 25px; }
}
@media (max-width: 360px) { .login-hero { padding-left: 20px; padding-right: 20px; }.login-card { padding-left: 20px; padding-right: 20px; }.biometric-option { gap: 7px; }.biometric-option strong { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; transform: translateY(65px); } }

/* Reference proportions: compact form, strong tiled hero, floating cargo route. */
.login-shell { padding: 32px 24px; }
.login-frame { max-width: 1180px; grid-template-columns: 1.08fr 1fr; }
.login-hero { padding: 42px 42px 30px; background: #0d2e22; }
.login-hero::before { background-image: linear-gradient(145deg, #07271a20, #03201588), repeating-conic-gradient(#193f2d 0% 25%, #123226 0% 50%); background-size: 100% 100%, 52px 52px; opacity: .9; }
.hero-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand strong { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.brand small { font-size: 11px; }
.brand-mark { width: 40px; height: 40px; font-size: 22px; background: #072c2070; box-shadow: inset 0 0 0 1px #7dc79712; }
.version-chip { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: #94deb0; background: #25674777; padding: 4px 7px; border-radius: 6px; }
.portal-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 10px; color: #b5d9c2; border: 1px solid #8fc79b15; background: #ffffff07; border-radius: 18px; padding: 7px 10px; }
.portal-chip > span, .shipment-note > span { width: 5px; height: 5px; border-radius: 50%; background: #59c18b; }
.hero-copy { margin-top: 34px; }
.hero-tag { font-size: 9px; padding: 7px 17px; letter-spacing: .5px; }
.hero-copy h1 { font-size: 40px; letter-spacing: -1.6px; margin: 15px 0 12px; line-height: 1.08; }
.hero-copy > p:last-child { font-size: 13px; line-height: 1.7; color: #b1caba; }
.shipment-preview { margin-top: 36px; padding: 22px; border-radius: 18px; background: linear-gradient(150deg, #102e20ce, #08271bdf); border-color: #75ad7e1c; box-shadow: 0 7px 25px #0016090c; }
.shipment-heading { font-size: 9px; letter-spacing: .5px; }
.shipment-caption { font-size: 9px !important; color: #8dc3a0 !important; letter-spacing: 0; }
.shipment-visual { position: relative; margin: 23px 0 8px; }
.shipment-art { margin: 0; }
.visual-route-pill { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #9ed9b2; border: 1px solid #46946050; padding: 5px 11px; border-radius: 18px; background: #123f2b95; box-shadow: 0 0 16px #58c1800a; }
.route-caption { margin-top: 9px; font-size: 10px; }
.route-caption > span { display: flex; align-items: center; gap: 7px; }
.route-caption i { width: 5px; height: 5px; border-radius: 50%; background: #68bc8f; }
.hero-features { padding-top: 21px; margin-top: 26px; gap: 7px; }
.hero-features span { font-size: 10px; padding: 6px 9px; border-radius: 5px; }
.shipment-note { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #7fae91; margin: 12px 0 0; }
.hero-footer { display: flex; align-items: center; gap: 4px; padding-top: 27px; font-size: 10px; }
.hero-footer small { margin-left: auto; font-size: 8px; letter-spacing: 1px; color: #588369; }
.login-card { padding: 40px 40px 25px; background-color: #fdfefd; background-image: linear-gradient(#173c2b05 1px, transparent 1px), linear-gradient(90deg, #173c2b05 1px, transparent 1px); background-size: 25px 25px; }
.access-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.access-heading .welcome-icon { margin: 0; flex-shrink: 0; }
.access-detail > span { display: inline-block; font-size: 8px; letter-spacing: .5px; color: #4f9270; border: 1px solid #b8dec580; border-radius: 5px; background: #eff9f1; padding: 3px 7px; font-weight: 700; }
.access-detail > span::before { content: ''; display: inline-block; width: 4px; height: 4px; background: #66b987; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.access-detail small { display: block; font-size: 9px; color: #8da28f; margin-top: 4px; }
.account-help-shortcut { margin-left: auto; padding: 7px 9px; border: 1px solid #e5e9e1; border-radius: 7px; background: #fff; color: #72816a; font-size: 9px; white-space: nowrap; }
.form-heading h2 { font-size: 32px; margin: 9px 0 7px; letter-spacing: -1px; }
.form-heading > p:last-child { font-size: 12px; line-height: 1.5; margin-bottom: 24px; max-width: 370px; }
.biometric-panel { padding: 13px; border-radius: 14px; margin-bottom: 0; background: #f7faf880; }
.biometric-heading { margin-bottom: 10px; }
.biometric-options { gap: 9px; }
.biometric-option { min-height: 48px; padding: 9px; border-radius: 11px; }
#biometric-status { font-size: 8px; line-height: 1.4; margin-top: 8px; }
.form-divider { margin: 16px 0 14px; font-size: 9px; }
.field { margin-bottom: 16px; }
.field label { font-size: 12px; margin-bottom: 7px; }
.field input { height: 43px; font-size: 14px; }
body.login-page #login-form .field input { border-radius: 10px !important; background: #f8fbf9 !important; }
.field input::placeholder { font-size: 12px; }
.password-field button { height: 35px; top: 4px; font-size: 11px; }
.password-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.password-label a { font-size: 10px; color: #6c9278; }
.sign-in { height: 44px; border-radius: 9px; font-size: 12px; margin-top: 1px; box-shadow: 0 5px 12px #123b2319; }
.sign-in span:last-child { font-size: 17px; }
.account-help { font-size: 10px; line-height: 1.6; margin: 12px 0 19px; }
.account-help strong { font-weight: 600; color: #496c52; }
.tracking-link { padding: 13px; border-radius: 12px; background: #f4faf0bb; }
.tracking-link strong { font-size: 11px; }
.tracking-link small { font-size: 10px; margin-top: 4px; }
.form-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; color: #809681; font-size: 9px; }
.page-footer { display: none; }
.scan-window { height: 184px; width: 184px; }
#biometric-dialog { width: min(360px, calc(100vw - 30px)); padding: 26px 26px 24px; border-radius: 21px; background: radial-gradient(ellipse at 8% 0%, #18472d, #071d13 80%); }
#scan-title { font-size: 22px; margin: 13px 0 6px; }
#scan-description { font-size: 11px; }
.scan-status { text-align: left; font-size: 10px; margin-bottom: 8px; }
.scan-progress { height: 4px; border: 1px solid #7bad8c20; border-radius: 3px; margin-bottom: 18px; overflow: hidden; background: #91bf9d08; }
.scan-progress > span { display: block; width: 24%; height: 100%; background: #60db91; animation: scan-progress 2.8s ease-in-out infinite alternate; box-shadow: 0 0 10px #60db91; }
@keyframes scan-progress { to { transform: translateX(310%); } }
@media (max-width: 1000px) and (min-width: 761px) { .login-hero,.login-card { padding: 28px; }.hero-copy h1 { font-size: 34px; }.portal-chip { display: none; }.desktop-break { display: none; } }
@media (max-width: 760px) { .login-frame { max-width: 480px; }.login-hero { padding: 23px 24px; }.portal-chip { display: none; }.login-card { padding: 27px 24px; }.access-heading { margin-bottom: 23px; }.form-heading h2 { font-size: 30px; }.form-heading > p:last-child { font-size: 12px; }.login-hero .brand strong { font-size: 18px; }.access-heading .welcome-icon { display: grid; } }
@media (max-width: 520px) { .login-frame { max-width: 100%; }.field input { height: 49px; font-size: 16px; }.password-field button { height: 41px; }.sign-in { height: 49px; font-size: 13px; }.login-card { padding: 27px 24px; }.access-heading { margin-bottom: 24px; }.biometric-option { min-height: 53px; }.form-footer { margin-top: 24px; }.login-hero { padding-top: max(23px, env(safe-area-inset-top)); } }
@media (max-width: 360px) { .login-hero,.login-card { padding-left: 20px; padding-right: 20px; }.access-detail small { font-size: 8px; }.account-help-shortcut { font-size: 8px; padding: 6px; }.access-heading { gap: 8px; }.version-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .scan-progress > span { animation: none; transform: none; } }

@media (min-width: 761px) {
    .hero-copy h1 { font-size: clamp(29px, 3.1vw, 39px); }
    .shipment-preview { margin-top: 29px; padding: 19px; }
    .shipment-visual { margin-top: 16px; }
    .hero-features { margin-top: 20px; padding-top: 16px; }
    .hero-footer { padding-top: 21px; }
    .login-hero { padding-bottom: 27px; }
}

.login-hero { gap: 0; }
@media (min-width: 761px) and (max-width: 1000px) {
    .login-shell { padding-top: 24px; padding-bottom: 24px; }
    .login-card { padding: 30px 34px 23px; }
    .access-heading { margin-bottom: 21px; }
    .access-heading .welcome-icon { width: 33px; height: 33px; }
    .form-heading h2 { font-size: 28px; }
    .form-heading > p:last-child { font-size: 11px; margin-bottom: 20px; }
    .biometric-panel { padding: 10px; }
    .biometric-heading { margin-bottom: 9px; }
    .biometric-option { min-height: 42px; padding: 8px; gap: 8px; }
    .biometric-option strong { font-size: 11px; }
    .biometric-option svg { width: 20px; height: 20px; }
    .field { margin-bottom: 13px; }
    .field label { font-size: 11px; margin-bottom: 6px; }
    .field input { height: 37px; font-size: 13px; }
    .password-field button { height: 31px; top: 3px; }
    .sign-in { height: 38px; }
    .account-help { margin: 11px 0 15px; font-size: 9px; }
    .tracking-link { padding: 11px; }
    .form-footer { margin-top: 20px; }
    .shipment-art { height: 147px; }
    .shipment-preview { margin-top: 26px; padding: 18px; }
    .hero-features { margin-top: 18px; padding-top: 16px; }
}
#biometric-status { display: none; }
.android-hosted #biometric-status { display: block; }

@media (min-width: 761px) and (max-width: 1000px) {
    .hero-copy { margin-top: 22px; }
    .hero-copy h1 { margin-top: 12px; }
    .shipment-preview { margin-top: 20px; padding: 16px; }
    .shipment-art { height: 135px; }
    .hero-features { margin-top: 14px; padding-top: 13px; }
    .hero-footer { padding-top: 16px; }
    .login-hero { padding-bottom: 20px; }
}

@media (max-width: 760px) { .login-hero .hero-footer { display: none; } }

#face-camera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); border-radius: 14px; }
.scan-window .scan-corner { z-index: 2; }
.scan-window .scan-line { z-index: 2; }

.passkey-setup-link { display: block; margin-top: 10px; color: #397b52; font-size: 9px; line-height: 1.5; }.passkey-setup-link:hover { text-decoration: underline; }

.enrollment-choice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 15px; font-size: 10px; line-height: 1.5; color: #55785f; }.enrollment-choice input { accent-color: #26744a; margin: 1px 0 0; width: 14px; height: 14px; flex-shrink: 0; }.scan-enroll { display: block; width: 100%; margin: 12px 0; padding: 8px 0; background: none; border: 0; color: #a3dbb7; text-decoration: underline; font-size: 10px; }

/* Shipment illustration motion: cargo lift, flowing route and endpoint pulses. */
.cargo-float { animation: cargo-hover 4s ease-in-out infinite; }
.cargo-shadow { transform-box: fill-box; transform-origin: center; animation: cargo-shadow-breathe 4s ease-in-out infinite; }
.route-dashes { animation: route-dash-flow 6s linear infinite; }
.route-halo { transform-box: fill-box; transform-origin: center; animation: route-endpoint-pulse 3s ease-out infinite; }
.route-halo-destination { animation-delay: 1.5s; }
.route-traveller { offset-path: path('M34 148Q199 18 366 128'); offset-distance: 0%; offset-rotate: 0deg; animation: route-light-travel 5.5s linear infinite; filter: drop-shadow(0 0 3px #8fffb9); }
.route-traveller-trail { animation-delay: -.22s; opacity: .5; }
.route-live-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; vertical-align: 1px; border-radius: 50%; background: #7ce7a8; animation: route-indicator-glow 2.5s ease-in-out infinite; }
@keyframes cargo-hover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes cargo-shadow-breathe { 0%,100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.86); opacity: .2; } }
@keyframes route-dash-flow { to { stroke-dashoffset: -72; } }
@keyframes route-endpoint-pulse { 0% { transform: scale(.8); opacity: .8; } 75%,100% { transform: scale(1.7); opacity: 0; } }
@keyframes route-light-travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes route-indicator-glow { 0%,100% { box-shadow: 0 0 0 0 #7ce7a800; opacity: .65; } 50% { box-shadow: 0 0 0 4px #7ce7a815; opacity: 1; } }
@supports not (offset-path: path('M0 0L1 1')) { .route-traveller { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .cargo-float,.cargo-shadow,.route-dashes,.route-halo,.route-traveller,.route-live-dot { animation: none !important; }
    .route-traveller { display: none; }
    .route-halo { opacity: .35; }
}

/* Reference login design, preserving the original shipment panel. */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#142334;background:#f5f9f8;font-synthesis:none;--green:#138a50;--muted:#718293;--border:#dfe7eb}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}[hidden]{display:none!important}:focus-visible{outline:3px solid #82d9af;outline-offset:3px}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.login-frame{width:100%;max-width:430px;border:1px solid #dceae3;border-radius:26px;overflow:hidden;background-color:#f8fbfa;background-image:linear-gradient(#e6efec80 1px,transparent 1px),linear-gradient(90deg,#e6efec80 1px,transparent 1px);background-size:22px 22px;box-shadow:0 18px 60px #123b2310}.login-card{display:flex;flex-direction:column;min-height: min(840px,calc(100dvh - 48px));padding:0 23px 22px}.security-bar{display:flex;justify-content:space-between;align-items:center;margin:0 -23px;padding:15px 23px;border-bottom:1px solid #dfe8e4;font-size:10px}.security-chip{padding:5px 9px;border:1px solid #9bebc4;border-radius:20px;background:#dcfcec;color:#08774b;font-size:9px;font-weight:700}.security-bar a{color:#42627b;font-weight:600}.login-brand{display:flex;justify-content:space-between;align-items:center;padding:25px 0 24px}.brand-mark{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(140deg,#073e30,#06a968);box-shadow:0 4px 9px #0c865c22;color:white;font-size:30px;font-weight:800;position:relative}.brand-mark span{position:absolute;right:9px;bottom:11px;width:5px;height:5px;border-radius:50%;background:#90ebbc}.login-brand>div{text-align:right}.version-chip{border:1px solid #a0eec4;color:#168754;font-size:9px;font-weight:700;border-radius:20px;padding:4px 8px}.login-brand small{display:block;color:#89a0b7;font-size:9px;margin-top:7px;letter-spacing:.8px}.eyebrow{margin:0;color:#208967;font-size:10px;font-weight:750;letter-spacing:1px}.form-heading h2{margin:8px 0 7px;font-size:29px;letter-spacing:-1px;line-height:1.15;color:#101c2c}.form-heading>p:last-child{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 18px}.auth-tabs{display:flex;background:#e7ecef;border-radius:25px;padding:3px;margin-bottom:15px}.auth-tabs button{flex:1;border:0;border-radius:22px;background:transparent;color:#64778a;padding:8px 4px;font-size:11px;font-weight:700}.auth-tabs [aria-selected=true]{background:#fff;color:#215346;box-shadow:0 1px 3px #122b3520}.biometric-panel{background:#ffffffed;border:1px solid var(--border);border-radius:17px;padding:15px}.biometric-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px}.biometric-heading strong{font-size:10px;font-weight:700}.biometric-heading strong:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#36cd90;margin-right:6px}.biometric-heading>span{font-size:8px;border:1px solid #a0edc7;border-radius:20px;padding:4px 6px;color:#1e986b;white-space:nowrap}.biometric-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.biometric-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;min-height:100px;padding:12px;border:1px solid #e0e6ed;border-radius:12px;background:#f7f9fc;color:#13334a;transition:background .2s,border-color .2s,transform .2s}.biometric-option:hover{background:#edfcf4;border-color:#73dcb1;transform:translateY(-2px)}.biometric-option svg{width:33px;height:33px;padding:7px;background:#d5fce6;border-radius:10px;color:#12825b}.biometric-option strong{display:block;font-size:11px}.biometric-option small{display:block;font-size:9px;color:#728598;margin-top:3px}.biometric-footer{border-top:1px solid #edf1f4;margin-top:13px;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.passkey-setup-link{font-size:9px;color:#689985}.biometric-footer button{background:none;border:0;padding:0;color:#138770;font-size:9px;font-weight:700}#biometric-status{font-size:10px;color:#6f8390;line-height:1.5;margin:10px 0 0}.form-divider{display:flex;justify-content:center;font-size:9px;letter-spacing:1px;color:#809184;margin:5px 0 18px}.field{margin-bottom:15px}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.field input{width:100%;height:47px;border:1px solid var(--border);border-radius:11px;background:#ffffffc0;padding:0 13px;color:#142334;font-size:16px}.field input:focus{outline:2px solid #81d7b0;outline-offset:1px}.field input::placeholder{color:#96a49f;font-size:12px}.password-label{display:flex;justify-content:space-between;align-items:baseline}.password-label a{font-size:10px;color:#738d81}.password-field{position:relative}.password-field input{padding-right:65px}.password-field button{position:absolute;right:6px;top:6px;border:0;background:none;color:#168754;padding:9px;font-size:11px}.enrollment-choice{display:flex;gap:7px;font-size:10px;line-height:1.5;color:#70877c;margin:0 0 15px}.enrollment-choice input{accent-color:var(--green)}.sign-in{display:flex;justify-content:center;align-items:center;gap:15px;width:100%;height:47px;border:0;border-radius:11px;background:var(--green);color:white;font-weight:700;font-size:12px;box-shadow:0 4px 8px #138a5020}.sign-in:disabled{opacity:.6}.account-help{font-size:9px;text-align:center;color:#85939e;line-height:1.6;margin:13px 0 24px}.account-help strong{color:#39566d;font-weight:600}.tracking-link{display:flex;align-items:center;gap:11px;background:#ffffffed;border:1px solid #a2ecc8;border-radius:15px;padding:12px;margin-top:auto;box-shadow:0 2px 3px #1b876508}.tracking-icon{width:34px;height:34px;padding:7px;border-radius:10px;background:#ddfbed;color:#0b825c}.tracking-icon svg{width:100%;height:100%}.tracking-link strong{display:block;font-size:11px}.tracking-link small{display:block;font-size:9px;color:#748b9c;margin-top:4px}.tracking-arrow{margin-left:auto;width:25px;height:25px;border:1px solid #a6edc7;color:#1aae77;border-radius:50%;text-align:center;line-height:23px}.form-footer,.page-footer{display:none}.login-error{border:1px solid #efc9c9;background:#fff5f5;color:#9b303b;border-radius:12px;padding:12px;font-size:11px;margin-bottom:12px}.login-error strong,.login-error span{display:block}.submit-status,.field-hint{font-size:11px;line-height:1.5;color:#168754}.submit-status:empty{display:none}
#biometric-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,430px);max-height:90dvh;overflow:auto;border:0;border-radius:30px 30px 0 0;padding:28px 25px max(24px,env(safe-area-inset-bottom));background:#fff;color:#162333;text-align:center;box-shadow:0 -10px 50px #14233418;animation:sheet-enter .3s ease-out}#biometric-dialog::backdrop{background:#101c2c75;backdrop-filter:blur(3px)}#biometric-dialog:before{content:"";position:absolute;top:13px;left:calc(50% - 23px);width:46px;height:5px;background:#cdd7df;border-radius:4px}.dialog-close{position:absolute;right:16px;top:20px;width:30px;height:30px;border:0;border-radius:50%;background:#f0f5f3;color:#688174;font-size:20px}.scan-tag{display:none}#scan-title{font-size:18px;letter-spacing:-.4px;margin:12px 0 8px}#scan-description{font-size:11px;color:#7f8d9f;line-height:1.6;max-width:270px;margin:0 auto 18px}.scan-window{position:relative;display:grid;place-items:center;width:85px;height:85px;margin:16px auto 22px;border:1px solid #a3eecb;background:#ecfff5;border-radius:50%;color:#128961;animation:sensor-pulse 2.4s ease-in-out infinite}.scan-window>svg{width:42px;height:42px}.scan-corner,.scan-line{display:none}#biometric-dialog:has(#face-camera:not([hidden])) .scan-window{width:210px;height:210px;border-radius:22px;overflow:hidden}#face-camera{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.scan-status{display:inline-block;padding:7px 10px;background:#dcfcec;color:#258961;border-radius:20px;font-size:10px;line-height:1.5;margin:0}.scan-enroll{display:block;margin:13px auto 18px;border:0;background:none;color:#748b9c;text-decoration:underline;font-size:10px}.scan-progress{display:none}.scan-actions{display:flex;gap:10px;margin-top:18px}.scan-actions button{flex:1;border:1px solid #ced8e1;border-radius:10px;padding:12px 6px;background:white;font-size:11px;font-weight:700;color:#425367}.scan-actions button:last-child{background:#138a50;border-color:#138a50;color:#fff}.scan-actions button:disabled{opacity:.5}@keyframes sheet-enter{from{transform:translateY(100%);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes sensor-pulse{50%{box-shadow:0 0 0 6px #8ce7bd20,0 0 0 12px #8ce7bd10}}@media(max-width:520px){.login-shell{padding:0;display:block}.login-frame{max-width:none;border:0;border-radius:0;box-shadow:none}.login-card{min-height:100dvh;padding-bottom:max(20px,env(safe-area-inset-bottom))}.security-bar{padding-top:max(15px,env(safe-area-inset-top))}#biometric-dialog{width:100%;max-width:none}}@media(prefers-reduced-motion:reduce){#biometric-dialog,.scan-window{animation:none}.biometric-option{transition:none}}

.security-chip svg{width:10px;height:10px;vertical-align:-2px}.auth-tabs button svg{width:13px;height:13px;vertical-align:-3px;margin-right:3px}

.login-shell{display:flex;justify-content:center;align-items:center;padding:32px 24px}
.login-frame{display:grid;max-width:1180px;grid-template-columns:1.08fr 1fr;background:#f8fbfa}
.login-card{padding:0 40px 25px;min-height:780px;background-color:#f8fbfa;background-image:linear-gradient(#e6efec80 1px,transparent 1px),linear-gradient(90deg,#e6efec80 1px,transparent 1px);background-size:22px 22px}
.security-bar{margin:0 -40px;padding:22px 40px}
.login-hero .brand-mark{width:40px;height:40px;font-size:22px;background:#072c2070;box-shadow:inset 0 0 0 1px #7dc79712;border-radius:12px}
.login-hero .brand-mark span{width:5px;height:5px;right:7px;bottom:8px;background:#b9d6ff}
.login-hero .version-chip{border:0;background:#20774435;color:#80c797;padding:4px 6px;font-size:9px;border-radius:4px}
.android-hosted .login-frame{display:block;max-width:520px}.android-hosted .login-hero{display:none}.android-hosted .login-card{min-height:100dvh}
@media(max-width:760px){.login-frame{display:block;max-width:480px}.login-hero{display:none}.login-card{padding:0 23px 22px;min-height:calc(100dvh - 64px)}.security-bar{margin:0 -23px;padding:15px 23px}}
@media(max-width:520px){.login-shell{padding:0;display:block}.login-frame{max-width:none;border:0;border-radius:0}.login-card{min-height:100dvh;padding-bottom:max(20px,env(safe-area-inset-bottom))}.security-bar{padding-top:max(15px,env(safe-area-inset-top))}}
/* Mobile readability, touch targets and safe screen edges. */
@media (max-width:760px) {
    .login-card { min-width:0; padding-left:max(20px,env(safe-area-inset-left)); padding-right:max(20px,env(safe-area-inset-right)); }
    .security-bar { margin-left:0; margin-right:0; padding:10px 0; gap:12px; }
    .security-bar a { display:flex; align-items:center; min-height:44px; font-size:12px; }
    .security-chip { font-size:10px; }
    .login-brand { padding:19px 0 23px; }
    .version-chip,.login-brand small { font-size:10px; }
    .eyebrow { font-size:11px; }
    .form-heading h2 { font-size:30px; }
    .form-heading > p:last-child { font-size:13px; line-height:1.6; }
    .auth-tabs button { min-height:44px; font-size:12px; }
    .biometric-panel { padding:14px; }
    .biometric-heading { flex-wrap:wrap; }
    .biometric-heading strong { font-size:11px; }
    .biometric-heading > span { font-size:10px; }
    .biometric-option { min-width:0; min-height:112px; padding:12px 10px; }
    .biometric-option strong { font-size:13px; }
    .biometric-option small { font-size:11px; line-height:1.4; }
    .biometric-footer { margin-top:12px; padding-top:3px; }
    .biometric-footer a,.biometric-footer button { display:flex; align-items:center; min-height:44px; font-size:11px; }
    #biometric-status { font-size:12px; }
    .field label { font-size:13px; }
    .field input { min-height:48px; font-size:16px; }
    .password-label a { display:flex; align-items:center; min-height:44px; font-size:12px; }
    .password-field button { min-width:44px; min-height:44px; top:2px; padding:8px; font-size:12px; }
    .enrollment-choice { align-items:center; min-height:44px; font-size:12px; }
    .enrollment-choice input { width:18px; height:18px; flex-shrink:0; }
    .sign-in { min-height:48px; font-size:14px; }
    .account-help { font-size:11px; line-height:1.7; margin:14px 0 25px; }
    .tracking-link { min-height:64px; margin-top:auto; }
    .tracking-link strong { font-size:12px; }
    .tracking-link small { font-size:11px; line-height:1.5; }
    #biometric-dialog { padding-left:max(20px,env(safe-area-inset-left)); padding-right:max(20px,env(safe-area-inset-right)); max-height:calc(100dvh - env(safe-area-inset-top) - 12px); }
    .dialog-close { min-width:44px; min-height:44px; right:12px; top:18px; }
    #scan-description,.scan-status { font-size:12px; }
    .scan-enroll { min-height:44px; font-size:12px; margin:6px auto; }
    .scan-actions button { min-height:48px; font-size:12px; }
}
@media (max-width:360px) {
    .login-card { padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
    .login-brand .version-chip { display:inline-block; }
    .biometric-heading strong { font-size:10px; }
}
@media (max-width:760px) and (max-height:600px) {
    .login-shell { align-items:flex-start; }
    .login-card { min-height:100dvh; }
    .tracking-link { margin-top:18px; }
    .scan-window { margin:10px auto 12px; width:65px; height:65px; }
    #biometric-dialog:has(#face-camera:not([hidden])) .scan-window { width:140px; height:140px; }
}
