:root {
    --portal-blue: #1769df;
    --portal-blue-dark: #0b3f9d;
    --portal-blue-soft: #eaf3ff;
    --portal-yellow: #ffc928;
    --portal-ink: #14213d;
    --portal-muted: #65738b;
    --portal-white: #ffffff;
    --portal-shadow: 0 24px 65px rgba(8, 48, 120, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--portal-ink);
    background: #f7faff;
}

a {
    color: var(--portal-blue);
}

a:hover {
    color: var(--portal-blue-dark);
}

#header {
    padding: 15px 0;
    background: rgba(8, 55, 139, .92);
    box-shadow: 0 8px 30px rgba(7, 43, 107, .18);
    backdrop-filter: blur(14px);
}

#header.header-scrolled {
    background: rgba(8, 55, 139, .97);
}

#header .logo img {
    max-height: 46px;
    margin-right: 12px;
}

#header .logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .4px;
}

#header .navbar > ul > li > a,
#header .navbar > ul > li > a.text-warning,
#header .navbar > ul > li > a.active {
    color: #fff !important;
    font-weight: 600;
}

#header .navbar > ul > li > a:hover {
    color: var(--portal-yellow) !important;
}

#header .navbar .btn-outline-primary {
    padding: 9px 24px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
}

#header .navbar .btn-outline-primary:hover {
    color: var(--portal-blue-dark) !important;
    background: #fff;
}

.hero-section {
    min-height: 720px;
    padding: 160px 0 120px;
    background:
        radial-gradient(circle at 83% 18%, rgba(255, 201, 40, .22) 0 5%, transparent 5.2%),
        radial-gradient(circle at 9% 76%, rgba(255, 255, 255, .12) 0 9%, transparent 9.2%),
        linear-gradient(135deg, #0b3f9d 0%, #1769df 55%, #48a1ff 100%);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.hero-section::before {
    width: 360px;
    height: 360px;
    top: 120px;
    right: -120px;
}

.hero-section::after {
    width: 190px;
    height: 190px;
    left: -70px;
    bottom: 80px;
}

.hero-section .wave {
    bottom: -2px;
}

.hero-section .hero-text-image {
    margin-top: 20px;
}

.hero-section h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-section h5 {
    max-width: 700px;
    font-size: 19px;
    line-height: 1.65;
    opacity: .9;
}

.hero-section img {
    width: 100%;
    box-shadow: var(--portal-shadow);
}

.hero-section .btn {
    min-width: 180px;
    padding: 13px 22px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(7, 43, 107, .22);
}

.hero-section .btn-warning {
    color: var(--portal-blue-dark);
    background: var(--portal-yellow);
}

.hero-section .btn-danger {
    color: var(--portal-blue-dark);
    background: #fff;
}

.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background: #f1f6ff;
}

.section-heading,
.section h2 {
    color: var(--portal-blue-dark);
    font-weight: 800;
    letter-spacing: -.5px;
}

.section-heading::after {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: var(--portal-yellow);
}

.feature-1,
.step,
.review {
    height: 100%;
    padding: 30px;
    border: 1px solid #e2ecfb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 67, 145, .08);
}

.catbox:hover {
    transform: translateY(-8px);
    border-color: #bdd7ff;
    box-shadow: 0 22px 45px rgba(16, 67, 145, .16);
}

.feature-1 .wrap-icon {
    background: var(--portal-blue-soft);
    color: var(--portal-blue);
}

.step .number {
    color: var(--portal-blue);
    font-weight: 800;
}

.section img.img-fluid:not(.rounded-circle) {
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(16, 67, 145, .12);
}

.overlay {
    background: rgba(5, 28, 71, .92);
    backdrop-filter: blur(10px);
}

.overlay-content input,
.overlay-content button {
    min-height: 58px;
}

.overlay-content input {
    border-radius: 16px 0 0 16px;
}

.overlay-content button {
    color: var(--portal-blue-dark);
    border-radius: 0 16px 16px 0;
    background: var(--portal-yellow);
}

.footer {
    background: #082f78;
}

.footer,
.footer h3,
.footer a {
    color: #fff;
}

.footer a:hover {
    color: var(--portal-yellow);
}

.auth-page {
    min-height: 100vh;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 201, 40, .2) 0 6%, transparent 6.2%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .12) 0 11%, transparent 11.2%),
        linear-gradient(135deg, #082f78 0%, #1769df 58%, #48a1ff 100%);
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(360px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 30px 80px rgba(4, 28, 75, .32);
    backdrop-filter: blur(16px);
}

.auth-brand {
    padding: 56px 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
}

.auth-brand img {
    width: 82px;
    margin-bottom: 24px;
}

.auth-brand h1 {
    margin: 0 0 14px;
    font-size: 38px;
    font-weight: 800;
}

.auth-brand p {
    margin: 0;
    line-height: 1.7;
    opacity: .85;
}

.auth-card {
    padding: 48px;
    border-radius: 28px;
    background: #fff;
}

.auth-card h2 {
    margin-bottom: 8px;
    color: var(--portal-blue-dark);
    font-size: 28px;
    font-weight: 800;
}

.auth-card .auth-subtitle {
    margin-bottom: 30px;
    color: var(--portal-muted);
}

.auth-card label {
    color: var(--portal-ink);
    font-weight: 700;
}

.auth-card .form-control,
.auth-card .select2-selection {
    min-height: 48px;
    border: 1px solid #d9e5f5;
    border-radius: 12px;
    background: #f8fbff;
}

.auth-card .form-control:focus {
    border-color: #73acff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 105, 223, .1);
}

.auth-card .input-group-text {
    border: 1px solid #d9e5f5;
    border-radius: 0 12px 12px 0;
    color: var(--portal-blue);
    background: #eef5ff;
}

.auth-card .btn {
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
}

.auth-card .btn-warning {
    color: var(--portal-blue-dark);
    background: var(--portal-yellow);
}

.auth-card .btn-primary {
    background: var(--portal-blue);
}

.auth-card .btn-secondary {
    color: var(--portal-blue-dark) !important;
    background: var(--portal-blue-soft);
}

.auth-card .alert {
    border: 0;
    border-radius: 12px;
}

.auth-card hr {
    border-color: #e8eff8;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.auth-card .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

.auth-card .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

@media (max-width: 991px) {
    #header {
        padding: 12px 0;
    }

    .hero-section {
        padding-top: 130px;
        text-align: center;
    }

    .hero-section h1,
    .hero-section h5 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section h1 {
        font-size: 44px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 34px;
        align-items: center;
        text-align: center;
    }

    .auth-brand img {
        width: 64px;
        margin-bottom: 14px;
    }

    .auth-brand h1 {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 38px;
    }

    .hero-section .d-flex.justify-content-center {
        flex-direction: column;
    }

    .hero-section .btn {
        width: 100%;
    }

    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 30px 22px;
    }
}
