

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



.login-wrap {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: #0b1320;
    isolation: isolate;
}

    .login-wrap::before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35)), url('/assets/img/login-bg.jpg') center/cover no-repeat;
        z-index: 0;
        transform: scale(1.02);
    }
.portal-login-wrap {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: #0b1320;
    isolation: isolate;
}

    .portal-login-wrap::before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35)), url('/assets/img/portal-account-login-bg.jpg') center/cover no-repeat;
        z-index: 0;
        transform: scale(1.02);
    }

/* Glassmorphism card */
.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 28px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    color: #fff;
    -webkit-backdrop-filter: blur(14px) saturate(200%);
    backdrop-filter: blur(14px) saturate(200%);
}

@supports not ((backdrop-filter: blur(1px))) {
    .login-card {
        background: rgba(20, 24, 32, 0.72);
    }
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

    .brand img {
        max-width: 58%;
        height: auto;
    }

.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #004b5b;
    display: block;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(56, 149, 211, 0.35);
    border-radius: 12px;
    padding: 0 12px;
    color: #0f172a;
    background: rgba(255,255,255,0.92);
}

    .form-control::placeholder {
        color: #6b7280;
    }

    .form-control:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0,107,127,.20);
        border-color: #7fd1de;
        background: #fff;
    }




.small-muted {
    color: #d1d5db;
    font-size: 12px;
    margin-top: 12px;
}

.error {
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
    border: 1px solid rgba(248,113,113,.45);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}


@media (max-width:480px) {
    .login-card {
        padding: 22px;
    }

    .brand img {
        max-width: 66%;
    }
}


@media (prefers-reduced-motion: reduce) {
    .btn-primary {
        transition: none;
    }

    .login-wrap::before {
        transform: none;
    }
}

.toast-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}


.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
}

pre.json {
    background: #0b1220;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 10px;
    overflow: auto;
}

/* Make CTA/service cards pop a bit more on hover */
.service-item {
    transition: transform .18s ease, box-shadow .18s ease;
}

    .service-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(2,6,23,.08);
    }
.stat-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    transition: transform .18s,box-shadow .18s
}

    .stat-tile .icon {
        font-size: 24px;
        opacity: .85;
        margin-bottom: 6px
    }

    .stat-tile .label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .06em
    }

    .stat-tile .value {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.1
    }

    .stat-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(2,6,23,.08)
    }

.mini-stat {
    background: #0b1220;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 14px
}

    .mini-stat .label {
        font-size: 12px;
        opacity: .7;
        text-transform: uppercase;
        letter-spacing: .06em
    }

    .mini-stat .val {
        font-size: 20px;
        font-weight: 700
    }

.section {
    padding: 56px 0;
}

.light-background {
    background: #f8fafc;
}

/* Hero */
.hero .lead {
    color: #475569;
}

.hero .btn {
    padding-inline: 16px;
}

/* Stat tiles */
.stat-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
}

    .stat-tile .icon {
        grid-row: span 2;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: #eff6ff;
        color: #2563eb;
        font-size: 18px;
    }

    .stat-tile .label {
        font-size: .85rem;
    }

    .stat-tile .value {
        font-size: 1.25rem;
        font-weight: 700;
    }

/* Services */
.service-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .service-item .icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: #f1f5f9;
        color: #0ea5e9;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .service-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.06);
    }

    .service-item .readmore {
        font-weight: 600;
    }

/* Calculator mini stats */
.mini-stat {
    background: #0b1220;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

    .mini-stat .label {
        font-size: .8rem;
        opacity: .75;
    }

    .mini-stat .val {
        font-size: 1.1rem;
        font-weight: 700;
    }

.text-primary {
    color: #0ea2bd;
}
.readmore {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    transition: var(--btn-transition);
}

    .readmore:hover {
        color: color-mix(in srgb, var(--accent-color), black 12%);
        transform: translateX(1px);
    }

.btn.btn-lg {
    padding: .8rem 1.25rem;
    border-radius: calc(var(--btn-radius) + 2px);
}

.btn.btn-sm {
    padding: .45rem .75rem;
    border-radius: calc(var(--btn-radius) - 2px);
}

.btn .bi, .btn i {
    margin-right: .35rem;
    line-height: 0;
}


/* Modal polish */
.modal-content {
    border: 0;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}

.logo-img {
    height: 48px; 
    width: auto;
    object-fit: contain;
}

.btn {
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
    box-shadow: var(--btn-shadow);
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--btn-shadow-hover);
    }

    .btn:active {
        transform: translateY(0);
        box-shadow: var(--btn-shadow);
    }

    /* Accessible focus ring in your brand color */
    .btn:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(0,95,115,.35);
    }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-600);
    --bs-btn-hover-border-color: var(--accent-600);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--accent-700);
    --bs-btn-active-border-color: var(--accent-700);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--accent-color);
    --bs-btn-disabled-border-color: var(--accent-color);
}
.btn-outline-secondary {
    --bs-btn-color: #334155; /* slate-700-ish */
    --bs-btn-border-color: #94a3b8; /* slate-400-ish */

    --bs-btn-hover-color: #0b1320;
    --bs-btn-hover-bg: #f1f5f9; /* slate-100 */
    --bs-btn-hover-border-color: #94a3b8;
    --bs-btn-active-color: #0b1320;
    --bs-btn-active-bg: #e2e8f0; /* slate-200 */
    --bs-btn-active-border-color: #94a3b8;
}
.btn-ghost {
    color: var(--accent);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

    .btn-ghost:hover {
        background-color: var(--accent-50);
    }

    .btn-ghost:active {
        background-color: #d7eef2;
    }

.btn-big {
    padding: 0.65rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 0.6rem;
}

/* slightly stronger */

.validation-summary-valid {
    display: none;
}
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11,18,32,.55);
    backdrop-filter: blur(2px);
    z-index: 1050;
}

    .loading-overlay.show {
        display: flex;
    }

.loading-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15)
}


