/* ==========================================================================
   Cargo Express premium login / sign up (body.ce-auth)
   Only restyles the existing markup: every id, class and form hook that
   js/pages/auth.js uses stays the same.
   ========================================================================== */
body.ce-auth {
    --ce-gold: #B5D0ED;
    --ce-gold-2: #4C7DC1;
    --ce-line: rgba(255, 255, 255, .10);
    --ce-soft: #B5D0ED;
    min-height: 100vh;
}


/* faint world-route grid behind everything */
body.ce-auth .auth-wrap { position: relative; padding: 18px 18px 34px; }
body.ce-auth .auth-wrap::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
}

/* ---- header: back button + brand ---- */
body.ce-auth .auth-top { padding-top: 6px; }
body.ce-auth .back-btn {
    top: 4px; width: 42px; height: 42px; font-size: 15px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--ce-line);
    box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.ce-brand { display: grid; justify-items: center; gap: 12px; margin: 26px 0 4px; text-align: center; }
.ce-mark {
    width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #8CB3E0, #4C7DC1 45%, #2C5189);
    border: 1px solid rgba(140, 179, 224, .45);
    box-shadow: 0 0 0 6px rgba(140, 179, 224, .06), 0 18px 34px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ce-mark svg { width: 54px; height: 54px; display: block; }
.ce-word { text-shadow: 0 4px 18px rgba(8, 29, 69, .55); font-family: "Montserrat", "Poppins", sans-serif; font-weight: 800; font-size: 27px; letter-spacing: .14em; line-height: 1; color: #fff; }
.ce-word span {
    background: linear-gradient(180deg, #FFFFFF, #8CB3E0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ce-tag { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--ce-soft); text-transform: uppercase; }
.ce-tag::before, .ce-tag::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--ce-gold)); }
.ce-tag::after { transform: scaleX(-1); }

/* ---- card ---- */
body.ce-auth .auth-card {
    margin-top: 26px; padding: 26px 20px 22px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)) !important;
    border: 1px solid var(--ce-line) !important;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
body.ce-auth .auth-card::before {
    top: -1px; left: 22%; width: 56%; height: 1px; border: 0; border-radius: 0; opacity: 1; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--ce-gold), transparent);
}

body.ce-auth .auth-head { grid-template-columns: 1fr; text-align: center; gap: 0; }
body.ce-auth .auth-ic { display: none; }
body.ce-auth .auth-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; white-space: normal; }
body.ce-auth .auth-head h1 b { color: var(--ce-gold); }
body.ce-auth .auth-head p { margin-top: 8px; font-size: 13.5px; color: var(--ce-soft); }
body.ce-auth .auth-head p::after { display: none; }

/* ---- inputs ---- */
body.ce-auth .auth-form { gap: 14px; margin-top: 24px; }
body.ce-auth .field {
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px;
    padding: 9px 10px 9px 9px; border-radius: 16px;
    background: rgba(8, 29, 69, .35); border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
body.ce-auth .field::after, body.ce-auth .field .bar { display: none; }
body.ce-auth .field:focus-within {
    border-color: rgba(140, 179, 224, .6);
    box-shadow: 0 0 0 4px rgba(140, 179, 224, .10), inset 0 1px 2px rgba(0, 0, 0, .35);
}
body.ce-auth .field .f-ic {
    width: 42px; height: 42px; aspect-ratio: auto; border-radius: 12px; font-size: 16px;
    color: var(--ce-gold); background: rgba(140, 179, 224, .09); border: 1px solid rgba(140, 179, 224, .22); box-shadow: none;
}
body.ce-auth .field .f-ic i { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ce-gold) !important; }
body.ce-auth .field label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ce-soft); white-space: nowrap; }
body.ce-auth .field input { margin-top: 2px; font-size: 15px; font-weight: 500; color: #fff; }
body.ce-auth .field input::placeholder { color: rgba(181, 208, 237, .55); font-weight: 400; }
body.ce-auth .field span.go { display: none; }
body.ce-auth .field button.go {
    width: 38px; height: 38px; border-radius: 11px; font-size: 14px; color: var(--ce-soft);
    background: rgba(255, 255, 255, .05) !important; border: 1px solid var(--ce-line); box-shadow: none !important;
}
body.ce-auth .field button.go i { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ce-soft) !important; }

/* ---- remember / forgot ---- */
body.ce-auth .auth-row { font-size: 12.5px; color: var(--ce-soft); }
body.ce-auth .auth-row a { color: var(--ce-gold); font-weight: 600; }

/* ---- main button ---- */
body.ce-auth .submit {
    margin-top: 6px; padding: 16px 60px; border-radius: 16px;
    font-size: 16.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #FFFFFF !important;
    background: linear-gradient(90deg, #7090B8, #4C7DC1 30%, #4B6E9D 55%, #2C5189 85%, #4B6E9D) !important;
    box-shadow: 0 16px 30px -14px rgba(140, 179, 224, .65), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: transform .15s ease, filter .15s ease;
}
body.ce-auth .submit:hover { filter: brightness(1.05); }
body.ce-auth .submit:active { transform: translateY(1px); }
body.ce-auth .submit .arrow {
    right: 8px; width: 40px; height: 40px; border-radius: 12px; font-size: 14px;
    color: #FFFFFF; background: rgba(255, 255, 255, .16); box-shadow: none;
}
body.ce-auth .submit .arrow i { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ce-gold) !important; }

/* ---- WhatsApp channel card on login ---- */
body.ce-auth .link-card {
    margin-top: 16px; border-radius: 16px !important;
    background: rgba(37, 211, 102, .07) !important; border: 1px solid rgba(37, 211, 102, .25) !important; box-shadow: none !important;
}

/* ---- footer ---- */
body.ce-auth .auth-foot { margin-top: 20px; font-size: 13.5px; color: var(--ce-soft); }
body.ce-auth .auth-foot::before, body.ce-auth .auth-foot::after { background: var(--ce-line); }
body.ce-auth .auth-foot a { color: var(--ce-gold); }

.ce-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 11.5px; color: rgba(181, 208, 237, .8); }
.ce-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ce-trust i { color: var(--ce-gold); background: none !important; -webkit-text-fill-color: currentColor !important; }

@media (max-width: 420px) {
    .ce-brand { margin-top: 30px; }
    .ce-word { font-size: 23px; }
    .ce-tag { font-size: 9.5px; letter-spacing: .26em; }
    body.ce-auth .auth-card { padding: 22px 14px 18px; }
    body.ce-auth .auth-head h1 { font-size: 22px; }
    body.ce-auth .field label { font-size: 10.5px; }
    body.ce-auth .field input { font-size: 14px; }
}
body.ce-auth .link-card .lc-ic { background: #25D366 !important; box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .7) !important; }
body.ce-auth .link-card .lc-ic i { background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important; }
body.ce-auth .link-card small { color: #6EE7A0 !important; }
body.ce-auth .link-card .go { background: rgba(37, 211, 102, .12) !important; box-shadow: none !important; }
body.ce-auth .link-card .go i { background: none !important; -webkit-text-fill-color: #6EE7A0 !important; color: #6EE7A0 !important; }

/* ---- brand: the navbar's globe + ship emblem in a circle, wordmark in its gold / cyan ---- */
.ce-mark {
    position: relative; width: 112px !important; height: 112px !important; border-radius: 50% !important; overflow: visible;
    background: radial-gradient(circle at 50% 38%, #2C6FD1, #123C74 60%, #081D45) !important;
    border: 2px solid rgba(140, 220, 255, .55) !important;
    box-shadow: 0 0 0 6px rgba(70, 200, 255, .08), 0 0 34px -6px rgba(70, 200, 255, .6), 0 18px 30px -16px rgba(0, 0, 0, .8) !important;
}
.ce-mark::after {
    /* slow glow ring */
    content: ""; position: absolute; inset: -8px; border-radius: 50%;
    border: 1.5px solid transparent; border-top-color: rgba(140, 220, 255, .85); border-right-color: rgba(255, 194, 58, .6);
    animation: ce-spin 6s linear infinite;
}
.ce-mark img { width: 92%; height: 92%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.ce-word { font-size: 32px !important; font-style: italic; letter-spacing: .01em !important; text-transform: none; }
.ce-word em {
    font-style: italic; background: linear-gradient(180deg, #FFF1B8, #FFC23A 55%, #D9921A);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ce-word span { background: linear-gradient(180deg, #E4FBFF, #46C8FF 55%, #1C9AD6) !important; -webkit-background-clip: text !important; background-clip: text !important; }
@keyframes ce-spin { to { transform: rotate(360deg); } }

/* ---- main button arrow: nudges right, slides + changes colour on hover / press, loader while sending ---- */
body.ce-auth .submit { overflow: hidden; }
body.ce-auth .submit::before {
    /* light sweep across the button */
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: ce-sweep 2.8s ease-in-out infinite;
}
body.ce-auth .submit .arrow { right: auto; left: 8px; transition: left .45s cubic-bezier(.3, 1.4, .5, 1), background .25s ease, color .25s ease, box-shadow .25s ease; }
body.ce-auth .submit .arrow i { animation: ce-nudge 1.2s ease-in-out infinite; transition: color .25s ease; }
body.ce-auth .submit:hover .arrow, body.ce-auth .submit:focus-visible .arrow {
    left: calc(100% - 48px); background: #FFFFFF !important; box-shadow: 0 0 16px rgba(140, 220, 255, .8) !important;
}
body.ce-auth .submit:hover .arrow i, body.ce-auth .submit:focus-visible .arrow i { color: #2C5189 !important; -webkit-text-fill-color: #2C5189 !important; }
body.ce-auth .submit:active .arrow { left: calc(100% - 48px); background: #46C8FF !important; }
body.ce-auth .submit:active .arrow i { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

/* while the request is running (js adds .is-busy): spinner in place of the arrow, faster sweep */
body.ce-auth .submit.is-busy { opacity: 1; }
body.ce-auth .submit.is-busy::before { animation-duration: 1s; }
body.ce-auth .submit.is-busy .arrow { left: calc(100% - 48px); background: #FFFFFF !important; }
body.ce-auth .submit.is-busy .arrow i { display: none; }
body.ce-auth .submit.is-busy .arrow::after {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(44, 81, 137, .25); border-top-color: #2C5189; animation: ce-spin .7s linear infinite;
}
@keyframes ce-nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes ce-sweep { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) {
    .ce-mark::after, body.ce-auth .submit::before, body.ce-auth .submit .arrow i { animation: none; }
}
.ce-word em, .ce-word span { padding-right: .12em; margin-right: -.06em; }
.ce-word { filter: drop-shadow(0 2px 3px rgba(4, 14, 40, .9)) drop-shadow(0 0 12px rgba(4, 14, 40, .6)); }
