/*
 * Login page. Palette comes from the logo:
 * navy #2E3191 (text, globe), red #EC1C24 (button, routes), white.
 */
html#login-page2,
body.lp-body {
    background: #cfe6ff;
    min-height: 100%;
}

body.lp-body {
    margin: 0;
    color: #2E3191;
    font-family: 'Mukta', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.lp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        /* soft glow behind the globe */
        radial-gradient(48% 62% at 30% 50%, rgba(46, 49, 145, .20) 0%, rgba(46, 49, 145, 0) 72%),
        /* sky blue base */
        linear-gradient(160deg, #eaf4ff 0%, #cfe6ff 55%, #b8d8ff 100%);
}

/* Very light dotted texture, strongest around the globe, fading out */
.lp-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(46, 49, 145, .22) 1.2px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(60% 75% at 30% 50%, #000 0%, transparent 80%);
    mask-image: radial-gradient(60% 75% at 30% 50%, #000 0%, transparent 80%);
    opacity: .55;
}

#lp-globe {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;   /* drag to rotate, wheel to zoom */
}

.lp-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 6%;
    box-sizing: border-box;
    pointer-events: none;   /* let mouse and touch reach the globe behind the empty area */
}

.lp-card {
    position: relative;
    pointer-events: auto;
    width: min(380px, 100%);
    box-sizing: border-box;
    padding: 26px 26px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dfe2f5;
    box-shadow: 0 20px 60px rgba(46, 49, 145, .18);
    overflow: hidden;
}

/* Thin bar in the logo's red-to-navy gradient */
.lp-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC1C24, #2E3191);
}

/* Logo is used exactly as it is, in its original colours */
.lp-logo {
    margin: 4px 0 6px;
}

.lp-logo svg {
    display: block;
    width: 100%;
    max-width: 270px;
    height: auto;
    margin: 0 auto;
}

.lp-sub {
    text-align: center;
    font-size: 13px;
    margin: 0 0 16px;
    color: #4b4f8a;
}

.lp-card label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #2f2484;
}

.lp-input {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #cfd3f0;
    background: #f7f8ff;
    color: #1b1d4a;
    padding: 0 12px;
    font: inherit;
    margin: 4px 0 12px;
}

.lp-input::placeholder { color: #8c90b8; }

.lp-input:focus {
    outline: 2px solid #2E3191;
    outline-offset: 1px;
    background: #ffffff;
}

.lp-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f23039, #EC1C24 45%, #c4121a);
    color: #fff;
    font: 700 15px 'Mukta', 'Segoe UI', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 8px 18px rgba(236, 28, 36, .28);
}

.lp-btn:hover { filter: brightness(1.06); }
.lp-btn:focus-visible { outline: 2px solid #2E3191; outline-offset: 2px; }

.lp-err {
    display: block;
    color: #c4121a;
    font-size: 12.5px;
    margin: -6px 0 10px;
}

.lp-alert {
    background: rgba(236, 28, 36, .08);
    border: 1px solid #EC1C24;
    color: #a40d14;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13.5px;
    margin-bottom: 12px;
}

.lp-links {
    text-align: center;
    font-size: 13px;
    margin: 12px 0 0;
    color: #4b4f8a;
}

.lp-links a,
.lp-foot a {
    color: #2E3191;
    font-weight: 700;
}

.lp-foot {
    text-align: center;
    font-size: 11.5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e6e8f7;
    color: #6a6ea3;
}

.lp-foot p { margin: 0; }

/* Phones and small tablets: globe on top, card below it */
@media (max-width: 719px) {
    .lp-wrap {
        align-items: flex-end;
        justify-content: center;
        padding: 42vh 16px 24px;
    }

    .lp-card { padding: 22px 18px 16px; }
    .lp-logo svg { max-width: 230px; }
}

@media (max-width: 719px) and (max-height: 640px) {
    .lp-wrap { padding-top: 34vh; }
}

/* ===== Extras: clouds, big plane, floating parcels, Now flying card, world clocks ===== */
.lp-fx,
.lp-fx2 {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.lp-fx  { z-index: 0; }   /* above the background, below the globe */
.lp-fx2 { z-index: 1; }   /* above the globe, below the login card */

.lp-cloud {
    position: absolute;
    width: 130px;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    opacity: .8;
    animation: lpDrift linear infinite;
}
.lp-cloud::before,
.lp-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.lp-cloud::before { width: 58px; height: 58px; left: 20px; top: -28px; }
.lp-cloud::after  { width: 42px; height: 42px; left: 66px; top: -18px; }
@keyframes lpDrift {
    from { transform: translateX(-300px); }
    to   { transform: translateX(calc(100vw + 300px)); }
}

.lp-big {
    position: absolute;
    top: 14%;
    left: -700px;
    width: 260px;
    opacity: .5;
    animation: lpCross 22s linear infinite;
}
.lp-big svg { display: block; width: 100%; height: auto; }
.lp-big::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 46%;
    width: 380px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95));
    border-radius: 3px;
}
@keyframes lpCross {
    0%, 8% { left: -700px; top: 22%; }
    100%   { left: 112%;   top: 9%; }
}

.lp-pc {
    position: absolute;
    bottom: -40px;
    width: 18px;
    height: 18px;
    background: #e8b36b;
    border: 1px solid #b9823a;
    border-radius: 3px;
    opacity: .5;
    animation: lpRise linear infinite;
}
.lp-pc::after { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px; background: #EC1C24; opacity: .8; }
.lp-pc.m { background: #fff; border-color: #2E3191; height: 12px; }
.lp-pc.m::after { display: none; }
@keyframes lpRise {
    to { transform: translateY(-115vh) rotate(25deg); opacity: 0; }
}

/* Now flying card (top left) */
.lp-nf {
    position: fixed;
    z-index: 3;
    left: 5%;
    top: 22px;
    width: 236px;
    background: #fff;
    border: 1px solid #dfe2f5;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 28px rgba(46, 49, 145, .16);
    pointer-events: none;
}
.lp-nf small {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 700 10.5px 'Mukta', sans-serif;
    letter-spacing: 1px;
    color: #7a7eb0;
}
.lp-nf small i { width: 8px; height: 8px; border-radius: 50%; background: #EC1C24; animation: lpBlink 1.2s infinite; }
.lp-nf b { display: block; font: 700 15px 'Mukta', sans-serif; margin: 3px 0 7px; color: #2E3191; }
.lp-nf b span { color: #EC1C24; }
.lp-nf .lp-bar { height: 5px; border-radius: 5px; background: #e3e7fb; overflow: hidden; }
.lp-nf .lp-bar div { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #EC1C24, #2E3191); }
.lp-nf em { display: block; margin-top: 5px; font-style: normal; font-size: 11.5px; color: #7a7eb0; font-variant-numeric: tabular-nums; }
@keyframes lpBlink { 50% { opacity: .25; } }

/* World clocks (bottom left) */
.lp-clocks {
    position: fixed;
    z-index: 3;
    left: 5%;
    bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 60%;
    pointer-events: none;
}
.lp-ck {
    background: rgba(255, 255, 255, .92);
    border: 1px solid #dfe2f5;
    border-radius: 10px;
    padding: 7px 12px;
    min-width: 96px;
    box-shadow: 0 6px 18px rgba(46, 49, 145, .12);
}
.lp-ck b { display: block; font: 700 10.5px 'Mukta', sans-serif; letter-spacing: .8px; color: #7a7eb0; }
.lp-ck span { display: flex; align-items: center; gap: 7px; }
.lp-ck em { font: 700 18px 'Mukta', sans-serif; font-style: normal; color: #2E3191; font-variant-numeric: tabular-nums; }
.lp-sun, .lp-moon { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.lp-sun  { background: #ffb81c; box-shadow: 0 0 0 3px rgba(255, 184, 28, .28); }
.lp-moon { background: #2E3191; box-shadow: inset -3px -2px 0 0 #aab4ff; }

@media (max-width: 719px) {
    .lp-clocks { display: none; }
    .lp-nf {
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: auto;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }
    .lp-nf b { margin: 0; font-size: 13px; }
    .lp-nf em { display: none; }
    .lp-nf .lp-bar { width: 64px; }
    .lp-big { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-cloud, .lp-big, .lp-pc, .lp-nf small i { animation: none !important; }
    .lp-big { left: 55%; }
    .lp-pc { display: none; }
}
