/*
 * moe-modern.css — visual upgrade layer for the moe-cayman public pages.
 *
 * Goals:
 *   - Modern typography (Inter, comfortable line-height, larger headings)
 *   - Brand palette (MoE teal #2b6062 + orange #f36b20)
 *   - Soft shadows, generous rounding, modern button + form treatment
 *   - Polished hero, card, and footer treatment without touching markup
 *
 * Loads AFTER publicCustom.min.css so these rules win the cascade.
 * Targets the same class names the page is already using.
 */

:root {
    --moe-teal:         #2b6062;
    --moe-teal-dark:    #1e4647;
    --moe-teal-soft:    rgba(43, 96, 98, 0.10);
    --moe-orange:       #f36b20;
    --moe-orange-dark:  #e4611a;
    --moe-cream:        #fff8ec;
    --moe-slate-900:    #0f172a;
    --moe-slate-700:    #334155;
    --moe-slate-500:    #64748b;
    --moe-slate-200:    #e2e8f0;
    --moe-slate-50:     #f8fafc;
}

/* ── Base typography ────────────────────────────────────────────── */
body {
    font-family: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--moe-slate-700);
    background: #fafafa;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--moe-slate-900);
}

a { transition: color 0.15s ease; }
a:hover { text-decoration: none; }

p { line-height: 1.65; }

.main-heading {
    font-size: 2rem;
    margin: 0 0 2.25rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}
.main-heading::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--moe-orange);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar.navbar-light.bg-white {
    background: white !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.navbar-brand img {
    height: 52px;
    width: auto;
}
.navbar-nav .nav-item {
    margin-left: 0.5rem;
}
.navbar-nav .nav-link.btn {
    padding: 0.55rem 1.4rem !important;
    font-size: 0.95rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    border-radius: 10px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-width: 1px;
    transition: transform 0.15s ease, box-shadow 0.2s ease,
                background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn:focus, .btn:active, .btn:hover { outline: none; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background: var(--moe-teal);
    border-color: var(--moe-teal);
    color: white;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):hover {
    background: var(--moe-teal-dark);
    border-color: var(--moe-teal-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(43, 96, 98, 0.25);
}

.btn-green,
.btn-green:not(:disabled):not(.disabled) {
    background: var(--moe-orange);
    border-color: var(--moe-orange);
    color: white;
}
.btn-green:hover, .btn-green:focus {
    background: var(--moe-orange-dark);
    border-color: var(--moe-orange-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(243, 107, 32, 0.28);
}

.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────── */
.banner {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(ellipse at top right, rgba(243, 107, 32, 0.06), transparent 50%),
        linear-gradient(135deg, var(--moe-cream) 0%, #ffffff 60%);
}
.banner h1 {
    font-size: 2.75rem;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--moe-slate-900);
}
.banner p {
    font-size: 1.1rem;
    color: var(--moe-slate-700);
    margin-bottom: 1.25rem;
}
.banner .details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.banner .details li {
    padding: 0.35rem 0;
    font-size: 1rem;
    color: var(--moe-slate-700);
}
.banner .details li i.fa-check-circle {
    color: var(--moe-teal);
    margin-right: 0.5rem;
}
.banner .hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Slider images */
.single-banner .item img {
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12),
                0 4px 12px rgba(15, 23, 42, 0.06);
}
.slick-dots li button:before {
    color: var(--moe-teal);
    opacity: 0.35;
    font-size: 10px;
}
.slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--moe-orange);
}

/* ── Download block ─────────────────────────────────────────────── */
.downloadBlock h4 {
    /* Normal-weight, sentence-case heading per request — no uppercase. */
    font-size: 1rem;
    text-transform: none;
    color: var(--moe-slate-700);
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.downloadBlock a img {
    height: 42px;
    width: auto;
    margin-right: 0.6rem;
    transition: transform 0.15s ease;
}
.downloadBlock a:hover img { transform: translateY(-2px); }

/* ── How it works ───────────────────────────────────────────────── */
.weWorks {
    background: white;
    padding: 5rem 0;
}
.weWorks .card.step-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.75rem;
    background: white;
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.weWorks .card.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}
.weWorks .step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--moe-teal) 0%, var(--moe-teal-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(43, 96, 98, 0.25);
}
.weWorks .card.step-card .card-body {
    padding: 0;
}
.weWorks .card-title {
    color: var(--moe-teal);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.weWorks .card-text {
    color: var(--moe-slate-500);
    font-size: 0.95rem;
    margin: 0;
}
.weWorks .countup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--moe-orange);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 4px 12px rgba(243, 107, 32, 0.3);
}

/* ── Feature grid ───────────────────────────────────────────────── */
.feature {
    background: var(--moe-slate-50);
    padding: 5rem 0;
}
.feature .Featurecontent {
    padding: 1.75rem 1.5rem;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.feature .Featurecontent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}
.feature .Featurecontent i {
    color: var(--moe-orange);
    background: rgba(243, 107, 32, 0.08);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature .Featurecontent h3 {
    font-size: 1.05rem;
    color: var(--moe-teal);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature .Featurecontent p {
    font-size: 0.92rem;
    color: var(--moe-slate-500);
    margin: 0;
    line-height: 1.55;
}

/* ── "Ready to get started" (uses .CountUp class) ───────────────── */
.CountUp {
    background: linear-gradient(135deg, var(--moe-teal) 0%, var(--moe-teal-dark) 100%);
    color: white;
    padding: 4rem 0;
}
.CountUp .main-heading,
.CountUp h2 { color: white; }
.CountUp .main-heading::after { background: var(--moe-orange); }
.CountUp p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}
.CountUp .btn-primary {
    background: white;
    color: var(--moe-teal);
    border-color: white;
}
.CountUp .btn-primary:hover {
    background: var(--moe-cream);
    color: var(--moe-teal-dark);
    border-color: var(--moe-cream);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

/* ── Auth forms (LogIn / register / ForgotPassword / ContactUs) ── */
.authPage {
    padding: 3.5rem 0;
    background:
        radial-gradient(ellipse at top right, rgba(243, 107, 32, 0.05), transparent 50%),
        var(--moe-slate-50);
    min-height: 80vh;
}
.authForm, .InfoBlock {
    background: white;
    padding: 2.25rem;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.07);
    margin: 1rem 0;
}
.InfoBlock { padding-top: 1.75rem; }
.InfoBlock h3 {
    font-size: 1.5rem;
    color: var(--moe-teal);
    margin-bottom: 1rem;
}
.InfoBlock .authImg {
    border-radius: 12px;
    margin-bottom: 1rem;
}
.InfoBlock .details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.InfoBlock .details li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}
.InfoBlock .details li i.fa-check-circle {
    color: var(--moe-teal);
    margin-right: 0.4rem;
}
.authForm h3 {
    font-size: 1.625rem;
    color: var(--moe-teal);
    margin-bottom: 0.4rem;
}
.authForm .subtitle {
    color: var(--moe-slate-500);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ── Inputs ────────────────────────────────────────────────────────
   publicCustom.min.css ships an underline-only style where the prefix
   icon is position:absolute *inside* the input — that was clipping the
   first character of every placeholder. These rules use higher
   specificity + !important to force a proper bordered card layout with
   the icon in a teal prefix tile and the text-input flush against it. */
.authPage .authForm .inputgroup,
.authPage .InfoBlock .inputgroup,
.authForm .inputgroup {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    margin-bottom: 1rem !important;
    background: white !important;
    border: 1px solid var(--moe-slate-200) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.authPage .authForm .inputgroup:focus-within,
.authForm .inputgroup:focus-within {
    border-color: var(--moe-teal) !important;
    box-shadow: 0 0 0 3px var(--moe-teal-soft) !important;
}

.authPage .authForm .inputgroup .input-group-prepend,
.authForm .inputgroup .input-group-prepend {
    position: static !important;
    display: flex !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
}

.authPage .authForm .inputgroup .input-group-text,
.authForm .inputgroup .input-group-text {
    /* publicCustom.min.css pins this to position:absolute with width/height
       4rem and white background — beat all three so the icon sits in flex
       flow as a proper prefix tile instead of overlaying the input. */
    position: static !important;
    top: auto !important;
    left: auto !important;
    background: var(--moe-teal) !important;
    background-color: var(--moe-teal) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 1rem !important;
    width: auto !important;
    min-width: 48px !important;
    height: auto !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    margin: 0 !important;
}
.authPage .authForm .inputgroup .input-group-text i.fa,
.authForm .inputgroup .input-group-text i.fa {
    color: white !important;
    margin: 0 !important;
}

.authPage .authForm .inputgroup .form-control,
.authPage .authForm .inputgroup textarea.form-control,
.authForm .inputgroup .form-control,
.authForm .inputgroup textarea.form-control {
    position: static !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.7rem 1rem !important;
    padding-left: 1rem !important;       /* full padding — icon lives outside */
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    box-shadow: none !important;
    outline: none !important;
    height: auto !important;
}
.authPage .authForm .inputgroup .form-control:focus,
.authForm .inputgroup .form-control:focus {
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}
.authPage .authForm .inputgroup textarea.form-control,
.authForm .inputgroup textarea.form-control {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    min-height: 110px;
    resize: vertical;
}

/* Password-eye toggle — keep it inside the input card, on the right */
.authPage .authForm .passwordToggle,
.authForm .passwordToggle { position: relative !important; }
.authPage .authForm .passwordToggle .fa-eye,
.authPage .authForm .passwordToggle .fa-eye-slash,
.authForm .passwordToggle .fa-eye,
.authForm .passwordToggle .fa-eye-slash {
    position: absolute !important;
    right: 0.85rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
    color: var(--moe-slate-500);
    font-size: 1.05rem;
    z-index: 5;
}
.authForm .passwordToggle .form-control { padding-right: 2.5rem !important; }

/* publicCustom.min.css has `.passwordToggle i { position: absolute; right: 10px }`
   targeting EVERY <i> inside .passwordToggle — that yanked the lock + shield
   prefix icons out to the right edge of the row, leaving the teal tile
   visually empty. Restore inline rendering for icons that live inside the
   prefix tile; the eye-toggle (.fa-eye / .fa-eye-slash) keeps the absolute
   override above. */
.authPage .authForm .passwordToggle .input-group-prepend i.fa,
.authPage .authForm .passwordToggle .input-group-text  i.fa,
.authForm .passwordToggle .input-group-prepend i.fa,
.authForm .passwordToggle .input-group-text  i.fa {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    font-size: 1rem !important;
    color: white !important;
    text-shadow: none !important;
    transition: none !important;
}

.loginError {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.linkChek {
    margin-bottom: 1rem;
    align-items: center;
    font-size: 0.9rem;
}
.linkChek a {
    color: var(--moe-teal);
    font-weight: 600;
}
.linkChek a:hover { color: var(--moe-teal-dark); }

/* Captcha widget — give it breathing room */
#captcha-widget { margin: 0.5rem 0 1rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.Footer {
    background: var(--moe-teal-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1rem;
    margin-top: 4rem;
}
.Footer h4 {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-weight: 700;
}
.Footer a {
    color: rgba(255, 255, 255, 0.7);
}
.Footer a:hover { color: white; }
.Footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.Footer ul li {
    padding: 0.3rem 0;
    font-size: 0.92rem;
}
.Footer .footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: white;
    padding: 4px;
}
.Footer .widget1 p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}
.Footer .widget3 li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.Footer .widget3 i {
    color: var(--moe-orange);
    margin-top: 0.2rem;
    width: 16px;
    flex-shrink: 0;
}
.Footer .DevelopBy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding: 1.25rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
.Footer #footer-contact-empty {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

#scroll-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    background: var(--moe-orange);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(243, 107, 32, 0.35);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
#scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(243, 107, 32, 0.45);
    color: white;
    text-decoration: none;
}
#scroll-to-top.visible { display: flex; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .banner {
        padding: 3rem 0;
        text-align: center;
    }
    .banner h1 { font-size: 2.125rem; }
    .banner .hero-cta { justify-content: center; }
    .banner .details {
        display: inline-block;
        text-align: left;
    }
    .single-banner { margin-top: 2rem; }
    .weWorks, .feature, .CountUp { padding: 3rem 0; }
    .main-heading { font-size: 1.6rem; }
    .authForm, .InfoBlock { padding: 1.5rem; }
    .navbar-nav { padding-top: 0.75rem; }
    .navbar-nav .nav-item { margin: 0.25rem 0; }
}

@media (max-width: 575.98px) {
    .banner h1 { font-size: 1.75rem; }
    .banner p { font-size: 1rem; }
    .main-heading { font-size: 1.375rem; }
    .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    .downloadBlock a img { height: 38px; }
}

/* ── Button group alignment ─────────────────────────────────────── */
/* Use one canonical .cta-buttons class for every multi-button row.
   Flex+gap keeps inter-button spacing consistent and the
   centred wrapper means the section's text-center carries through. */
.cta-buttons,
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}
.cta-buttons { justify-content: center; }
.cta-buttons .btn,
.hero-cta .btn {
    margin: 0 !important;       /* override Bootstrap .mr-* utilities */
    min-width: 168px;
    text-align: center;
}
.btn .fa { margin-right: 0.4rem; }

/* ── Footer polish ──────────────────────────────────────────────── */
.Footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
}
.Footer .row { row-gap: 2rem; }
.Footer .widget1, .Footer .widget2, .Footer .widget3 {
    padding-right: 1rem;
}
.Footer ul li a {
    display: inline-block;
    padding: 0.15rem 0;
}
.Footer ul li i.fa {
    color: var(--moe-orange);
}
.Footer .widget3 li {
    line-height: 1.5;
}
.Footer .widget3 li a,
.Footer .widget3 li span {
    word-break: break-word;
}
.Footer #footer-contact-empty {
    line-height: 1.45;
    padding-top: 0.25rem;
}
.Footer .DevelopBy p { margin: 0; }
.Footer .DevelopBy a { color: var(--moe-orange); font-weight: 600; }
.Footer .DevelopBy a:hover { color: #ffb088; }

/* Brand name pulled from server-side fallback in the © line — keep it
   inline with the year, not on its own line. */
.Footer .DevelopBy [data-tenant-name] {
    display: inline;
}

/* Mobile: footer columns stack with proper spacing */
@media (max-width: 767.98px) {
    .Footer { padding-top: 2.5rem; margin-top: 2.5rem; }
    .Footer .footer-brand img { height: 48px; }
    .Footer h4 { margin-top: 0.5rem; }
    .Footer .widget2.d-sm-flex { flex-direction: column; }
    .Footer .widget2 > div { margin-bottom: 1.25rem; }
}

/* ── Top-nav main links (Home / About / Contact) ─────────────────── */
.nav-main-links { margin-right: auto; }
.nav-main-links .nav-item { margin: 0 0.15rem; }
.nav-main-links .nav-link {
    color: var(--moe-slate-700) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    position: relative;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-main-links .nav-link:hover,
.nav-main-links .nav-link:focus {
    color: var(--moe-teal) !important;
    background: var(--moe-teal-soft);
}
.nav-main-links .nav-link.active {
    color: var(--moe-teal-dark) !important;
    font-weight: 600;
}

/* Bootstrap 4 doesn't have me-auto/ms-auto utilities — fall back to ml-auto. */
.nav-main-links.me-auto { margin-right: auto; margin-left: 0; }

@media (max-width: 991.98px) {
    .nav-main-links {
        margin: 0.5rem 0 0;
        flex-direction: column;
        width: 100%;
    }
    .nav-main-links .nav-link {
        padding: 0.65rem 0.5rem !important;
        border-bottom: 1px solid var(--moe-slate-200);
        border-radius: 0;
    }
    .nav-main-links .nav-item:last-child .nav-link { border-bottom: 0; }
}

/* ── Auth illustration — hero composition ──────────────────────────
   Single big teal circle in the centre, four floating "feature chips"
   around it on a soft cream-to-white blob. Gentle vertical float so it
   feels alive without being distracting. Replaces the previous 2x2
   grid which read as a dashboard. *@
*/
.auth-illustration {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 70% 20%, rgba(243, 107, 32, 0.10), transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(43, 96, 98, 0.08), transparent 55%),
        linear-gradient(135deg, var(--moe-cream) 0%, white 100%);
    border-radius: 28px;
    overflow: hidden;
}

/* Backdrop glow behind the central icon */
.auth-illustration::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 64%; height: 64%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(243, 107, 32, 0.18), transparent 65%);
    filter: blur(18px);
    pointer-events: none;
}

/* Central icon — the page's "primary action" symbol */
.auth-illustration .hero-main {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.auth-illustration .hero-main-icon {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--moe-teal) 0%, var(--moe-teal-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.25rem;
    box-shadow:
        0 24px 60px rgba(43, 96, 98, 0.45),
        inset 0 -8px 24px rgba(0, 0, 0, 0.12);
    animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* Floating "feature chips" around the hero icon */
.auth-illustration .hero-chip {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 0.6rem 0.95rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--moe-teal);
    z-index: 3;
    white-space: nowrap;
}
.auth-illustration .hero-chip i {
    color: var(--moe-orange);
    font-size: 1rem;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(243, 107, 32, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-illustration .hero-chip-1 { top: 14%;  left: 6%;   animation: float 3.4s ease-in-out infinite; }
.auth-illustration .hero-chip-2 { top: 14%;  right: 6%;  animation: float 3.8s ease-in-out infinite reverse; }
.auth-illustration .hero-chip-3 { bottom: 16%; left: 5%; animation: float 4.0s ease-in-out infinite reverse; }
.auth-illustration .hero-chip-4 { bottom: 14%; right: 6%; animation: float 3.6s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@media (max-width: 575.98px) {
    .auth-illustration { max-width: 320px; }
    .auth-illustration .hero-main-icon { width: 110px; height: 110px; font-size: 2.5rem; }
    .auth-illustration .hero-chip { font-size: 0.75rem; padding: 0.45rem 0.7rem; }
    .auth-illustration .hero-chip i { width: 18px; height: 18px; font-size: 0.85rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-illustration .hero-main-icon,
    .auth-illustration .hero-chip { animation: none; }
}

/* ── Footer link polish (parent-portal column was hard to scan) ──── */
.Footer ul li a {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.Footer ul li a:hover {
    color: white !important;
    padding-left: 4px;
}
.Footer ul li a::before {
    content: '\f105'; /* fa-angle-right */
    font-family: 'FontAwesome', sans-serif;
    color: var(--moe-orange);
    margin-right: 0.5rem;
    font-size: 0.85em;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.Footer ul li a:hover::before { opacity: 1; }

/* Quick Links + Parent portal column headings — tighter, more nav-like */
.Footer .widget2 h4 {
    color: var(--moe-orange);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Contact column — keep the link styles distinct from the sidebar lists */
.Footer .widget3 ul li a {
    padding-left: 0 !important;
}
.Footer .widget3 ul li a::before { display: none; }

/* PrivacyPolicy page card — wider text column reads better */
.Homepage .step-card p,
.Homepage .step-card ul.details { font-size: 1rem; line-height: 1.7; }
.Homepage .step-card ul.details li { padding: 0.4rem 0; align-items: flex-start; }
.Homepage .step-card ul.details li i { margin-top: 0.3rem; flex-shrink: 0; }

/* "Powered by School365" — make the brand line balance properly */
.Footer .DevelopBy p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}


/* ═══════════════════════════════════════════════════════════════
   NEW DESIGN SYSTEM (.mo-*) — approved redesign 2026-08-08.
   Namespaced classes; converted pages use these, legacy pages keep
   the rules above until migrated. Both coexist without collisions.
   ═══════════════════════════════════════════════════════════════ */

/*
 * moe-modern.css — modern design system for the MoE Cayman public + parent portal.
 * Approved redesign 2026-08-08. Brand: teal #2b6062 + orange #f36b20, Inter type.
 * Loads LAST (after bootstrap + publicCustom) so these rules win the cascade.
 * New pages use the component classes defined here (.mo-*), so bootstrap/legacy
 * styles don't interfere.
 */

:root{
  /* Exact brand colours sampled from the plate-and-cutlery logo (2026-08-08):
     ring teal #195450, plate orange #ee591d. */
  --teal:#195450; --teal-d:#103d3a; --teal-700:#17504c;
  --orange:#ee591d; --orange-d:#d64d17;
  --cream:#fff8ec; --cream-2:#fff3e0;
  --s900:#0f172a; --s700:#334155; --s500:#64748b; --s300:#cbd5e1; --s200:#e2e8f0; --s100:#f1f5f9; --s50:#f8fafc;
  --ring:rgba(43,96,98,.12);
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.06);
  --shadow:0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg:0 24px 60px -20px rgba(15,23,42,.28);
  --r:18px;
}

/* ── base ─────────────────────────────────────────────────────── */
/* publicCustom.min.css sets html{font-size:62.5%} (the legacy "10px root" trick),
   which would shrink every .mo-* rem to 62.5% of its intended size. Restore a
   16px root so the redesign matches the approved mockup. moe-modern.css loads
   last, so this wins. */
html{font-size:100%}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--s700);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
.mo h1,.mo h2,.mo h3,.mo h4,h1.mo,h2.mo,h3.mo{color:var(--s900);font-weight:800;letter-spacing:-.02em;line-height:1.12}
.mo-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.mo a{text-decoration:none}
/* color:inherit for plain links only — NOT buttons, or an <a class="mo-btn">
   would inherit dark text and go invisible on a coloured button. */
.mo a:not(.mo-btn){color:inherit}
.mo img{max-width:100%}
.mo-scrollx{overflow-x:auto}

/* ── buttons ──────────────────────────────────────────────────── */
.mo-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:600;font-size:.95rem;padding:.8rem 1.5rem;border-radius:12px;border:1.5px solid transparent;cursor:pointer;transition:.18s ease;white-space:nowrap;font-family:inherit;text-decoration:none}
.mo-btn:hover{text-decoration:none}
.mo-btn-primary{background:var(--teal);color:#fff;box-shadow:0 8px 20px -8px rgba(43,96,98,.5)}
.mo-btn-primary:hover{background:var(--teal-d);color:#fff;transform:translateY(-1px)}
.mo-btn-accent{background:var(--orange);color:#fff;box-shadow:0 8px 20px -8px rgba(243,107,32,.5)}
.mo-btn-accent:hover{background:var(--orange-d);color:#fff;transform:translateY(-1px)}
.mo-btn-ghost{background:#fff;color:var(--teal);border-color:var(--s200)}
.mo-btn-ghost:hover{border-color:var(--teal);background:var(--s50);color:var(--teal)}
.mo-btn-block{width:100%;padding:.95rem}
.mo-btn-sm{padding:.55rem 1rem;font-size:.88rem}
.mo-btn:disabled,.mo-btn.mo-disabled{opacity:.65;cursor:not-allowed;transform:none}

/* ── bits ─────────────────────────────────────────────────────── */
.mo-eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);background:var(--ring);padding:.4rem .85rem;border-radius:999px}
.mo-pill{display:inline-flex;align-items:center;gap:.45rem;font-size:.85rem;font-weight:500;color:var(--s700)}
.mo-pill svg{color:var(--teal);flex:none}
.mo-chip{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--teal),var(--teal-700));color:#fff;box-shadow:0 10px 22px -10px rgba(43,96,98,.6)}
.mo-lbl{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);background:var(--cream-2);display:inline-block;padding:.35rem .7rem;border-radius:8px;margin-bottom:10px}

/* ── nav ──────────────────────────────────────────────────────── */
.mo-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--s100)}
.mo-nav-inner{display:flex;align-items:center;justify-content:space-between;height:70px}
.mo-brand{display:flex;align-items:center;gap:.7rem;font-weight:800;color:var(--s900);font-size:1.05rem}
.mo-brand:hover{color:var(--s900)}
.mo-brand .mo-logo{width:46px;height:46px;border-radius:12px;background:transparent;display:grid;place-items:center;flex:none;overflow:hidden}
.mo-brand .mo-logo img{width:100%;height:100%;object-fit:contain}
.mo-nav-right{display:flex;align-items:center;gap:1.8rem}
.mo-nav-right nav{display:flex;gap:1.5rem}
.mo-nav-right nav a{font-weight:500;font-size:.95rem;color:var(--s700)}
.mo-nav-right nav a:hover,.mo-nav-right nav a.active{color:var(--teal)}
.mo-nav-cta{display:flex;gap:.6rem;align-items:center}
.mo-hamb{display:none;background:none;border:0;cursor:pointer;color:var(--s900);padding:6px}
.mo-install{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.86rem;color:var(--teal);cursor:pointer;padding:.5rem .8rem;border:1.5px dashed var(--teal);border-radius:10px;background:none}
.mo-install:hover{background:var(--ring)}
.mo-mobmenu{display:none;flex-direction:column;gap:.2rem;padding:10px 24px 16px;background:#fff;border-bottom:1px solid var(--s100)}
.mo-mobmenu.open{display:flex}
.mo-mobmenu a{padding:.7rem .4rem;font-weight:500;color:var(--s700);border-radius:8px}
.mo-mobmenu a:hover{background:var(--s50)}

/* ── hero ─────────────────────────────────────────────────────── */
.mo-hero{position:relative;overflow:hidden;background:
   radial-gradient(1000px 500px at 85% -10%, var(--cream) 0%, rgba(255,248,236,0) 60%),
   radial-gradient(700px 400px at 0% 100%, rgba(43,96,98,.06) 0%, rgba(43,96,98,0) 55%);
   padding:72px 0 86px}
.mo-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
/* Grid items default to min-width:auto, which lets a slick slider's width:100%
   image blow the column out to 33M px. Constrain every grid child so fr sizing
   wins and content (incl. the hero slider) is bounded. */
.mo-hero-grid>*,.mo-authpage>*,.mo-appcta .inner>*{min-width:0}
.mo-hero h1{font-size:3.1rem;margin:16px 0 0;color:var(--s900);font-weight:800;letter-spacing:-.02em;line-height:1.12}
.mo-hero h1 .hl{color:var(--teal)}
.mo-hero .mo-lead{font-size:1.16rem;color:var(--s500);margin:20px 0 26px;max-width:34ch}
.mo-hero-cta{display:flex;gap:.8rem;flex-wrap:wrap}
.mo-hero-feats{display:flex;flex-wrap:wrap;gap:.7rem 1.4rem;margin-top:24px}
.mo-hero-visual{position:relative}
.mo-hero-photo{border-radius:26px;overflow:hidden;box-shadow:var(--shadow-lg);aspect-ratio:4/3.4;background:linear-gradient(135deg,#e7f0ef,#fdeede)}
.mo-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.mo-float{position:absolute;background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:.8rem 1rem;display:flex;align-items:center;gap:.7rem;font-weight:600;color:var(--s900);font-size:.9rem}
.mo-float small{display:block;font-weight:500;color:var(--s500);font-size:.75rem}
.mo-float .dot{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:none}
.mo-f1{top:22px;left:-24px}.mo-f2{bottom:32px;right:-20px}.mo-f3{bottom:-16px;left:38px}

/* ── sections ─────────────────────────────────────────────────── */
.mo-band{padding:82px 0}
.mo-center{text-align:center;max-width:640px;margin:0 auto 50px}
.mo-center h2{font-size:2.05rem;color:var(--s900);font-weight:800;letter-spacing:-.02em}
.mo-center p{color:var(--s500);margin-top:12px;font-size:1.04rem}
.mo-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.mo-step{background:#fff;border:1px solid var(--s100);border-radius:var(--r);padding:30px 26px;position:relative;transition:.2s;box-shadow:var(--shadow-sm)}
.mo-step:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent}
.mo-step .num{position:absolute;top:20px;right:24px;font-weight:800;font-size:2.3rem;color:var(--s100)}
.mo-step h3{font-size:1.18rem;margin:18px 0 8px;color:var(--s900);font-weight:800}
.mo-step p{color:var(--s500);font-size:.95rem}
.mo-featband{background:var(--s50);padding:82px 0}
.mo-feats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.mo-feat{background:#fff;border-radius:16px;padding:26px 22px;border:1px solid var(--s100)}
.mo-feat .mo-chip{width:46px;height:46px;border-radius:12px;margin-bottom:16px}
.mo-feat h4{font-size:1.02rem;margin-bottom:6px;color:var(--s900);font-weight:700}
.mo-feat p{font-size:.9rem;color:var(--s500)}

/* ── auth split page ──────────────────────────────────────────── */
.mo-authpage{min-height:calc(100vh - 70px);display:grid;grid-template-columns:1.05fr 1fr;background:
   radial-gradient(700px 380px at 100% 0, var(--cream) 0, rgba(255,248,236,0) 55%)}
.mo-auth-aside{background:linear-gradient(160deg,var(--teal),var(--teal-d));color:#fff;padding:64px 60px;display:flex;flex-direction:column;justify-content:center}
.mo-auth-aside.orange{background:linear-gradient(160deg,var(--orange),var(--orange-d))}
.mo-auth-aside h2{color:#fff;font-size:2rem;max-width:16ch;font-weight:800;letter-spacing:-.02em}
.mo-auth-aside>p{color:rgba(255,255,255,.82);margin:14px 0 30px;max-width:34ch}
.mo-li{display:flex;gap:.8rem;align-items:flex-start;margin-bottom:18px;max-width:36ch}
.mo-li .tick{width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:none;color:#fff}
.mo-li b{color:#fff;font-weight:600;display:block;font-size:.98rem}
.mo-li span{color:rgba(255,255,255,.74);font-size:.87rem}
.mo-auth-main{display:flex;align-items:center;justify-content:center;padding:56px 24px}
.mo-card{width:100%;max-width:430px}
.mo-card .top{text-align:center;margin-bottom:26px}
.mo-card .top .badge{width:56px;height:56px;border-radius:16px;margin:0 auto 14px;background:var(--cream-2);display:grid;place-items:center;color:var(--orange)}
.mo-card h3{font-size:1.6rem;color:var(--s900);font-weight:800}
.mo-card .sub{color:var(--s500);font-size:.96rem;margin-top:6px}
.mo-field{margin-bottom:15px}
.mo-field label{display:block;font-size:.82rem;font-weight:600;color:var(--s700);margin-bottom:7px}
.mo-input{display:flex;align-items:center;gap:.6rem;border:1.5px solid var(--s200);border-radius:12px;padding:0 14px;background:#fff;transition:.15s}
.mo-input:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px var(--ring)}
.mo-input svg{color:var(--s500);flex:none}
.mo-input .eye{cursor:pointer}
.mo-input input{border:0;outline:0;padding:.85rem 0;font-size:.98rem;width:100%;color:var(--s900);background:transparent;font-family:inherit}
.mo-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fff inset}
.mo-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mo-rowbetween{display:flex;align-items:center;justify-content:space-between;margin:4px 0 18px;font-size:.88rem}
.mo-rowbetween a{color:var(--orange);font-weight:600}
.mo-check{display:flex;align-items:center;gap:.45rem;color:var(--s500)}
.mo-card .foot{text-align:center;margin-top:18px;font-size:.92rem;color:var(--s500)}
.mo-card .foot a{color:var(--orange);font-weight:600}
.mo-backlink{display:inline-flex;align-items:center;gap:.4rem;color:var(--s500);font-size:.9rem;font-weight:500;margin-bottom:22px}
.mo-backlink:hover{color:var(--teal)}
.mo-err{color:#dc2626;font-size:.85rem;margin-top:6px;min-height:1em}
/* captcha widget sits comfortably in the card */
#captcha-widget{margin:4px 0 16px}
#captcha-widget>div{max-width:100%}

/* ── app cta ──────────────────────────────────────────────────── */
.mo-appcta{padding:20px 0 88px}
.mo-appcta .inner{background:linear-gradient(120deg,var(--teal),var(--teal-700));border-radius:26px;padding:46px 50px;display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff;box-shadow:var(--shadow-lg)}
.mo-appcta h2{color:#fff;font-size:1.85rem;font-weight:800}
.mo-appcta p{color:rgba(255,255,255,.82);margin-top:10px;max-width:44ch}
.mo-stores{display:flex;gap:14px;flex-wrap:wrap}
.mo-store{display:flex;align-items:center;gap:.7rem;background:#0f172a;color:#fff;border-radius:14px;padding:.75rem 1.2rem}
.mo-store:hover{color:#fff}
.mo-store small{display:block;font-size:.64rem;color:#cbd5e1;font-weight:500}
.mo-store b{font-size:1rem}

/* ── pwa install banner ───────────────────────────────────────── */
.mo-pwa{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:60;background:#fff;box-shadow:var(--shadow-lg);border:1px solid var(--s100);border-radius:16px;padding:14px 16px;display:none;align-items:center;gap:14px;max-width:92vw}
.mo-pwa.show{display:flex}
.mo-pwa .ic{width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,var(--teal),var(--teal-d));display:grid;place-items:center;color:#fff;flex:none;overflow:hidden}
.mo-pwa .ic img{width:100%;height:100%;object-fit:contain}
.mo-pwa b{color:var(--s900);font-size:.95rem;display:block}
.mo-pwa span{color:var(--s500);font-size:.82rem}
.mo-pwa .x{background:none;border:0;color:var(--s500);cursor:pointer;font-size:1.1rem;padding:4px}

/* ── footer ───────────────────────────────────────────────────── */
.mo-footer{background:#12312f;color:#cfe0de;padding:60px 0 26px}
.mo-foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:40px;padding-bottom:38px;border-bottom:1px solid rgba(255,255,255,.08)}
.mo-footer .mo-brand{color:#fff}
.mo-footer h5{color:#fff;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}
.mo-footer ul{list-style:none;display:flex;flex-direction:column;gap:10px;padding:0;margin:0}
.mo-footer a{color:#a9c4c1;font-size:.93rem}
.mo-footer a:hover{color:var(--orange)}
.mo-foot-contact div{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:11px;font-size:.9rem}
.mo-foot-contact svg{color:var(--orange);flex:none;margin-top:3px}
.mo-copyright{text-align:center;color:#7fa09d;font-size:.85rem;padding-top:24px}
.mo-copyright b{color:var(--orange)}

/* ── responsive ───────────────────────────────────────────────── */
@media(max-width:920px){
  .mo-hero-grid{grid-template-columns:1fr;gap:36px}
  .mo-hero h1{font-size:2.35rem}
  .mo-steps{grid-template-columns:1fr}
  .mo-feats{grid-template-columns:1fr 1fr}
  .mo-authpage{grid-template-columns:1fr}
  .mo-auth-aside{display:none}
  .mo-appcta .inner{flex-direction:column;text-align:center}
  .mo-foot-grid{grid-template-columns:1fr 1fr}
  .mo-nav-right nav,.mo-nav-cta{display:none}
  .mo-hamb{display:block}
}
@media(max-width:520px){
  .mo-feats,.mo-foot-grid{grid-template-columns:1fr}
  .mo-hero h1{font-size:2rem}
  .mo-float{display:none}
  .mo-wrap{padding:0 18px}
  .mo-auth-main{padding:40px 18px}
}
