form .disabled {
    opacity: 0.50;
    pointer-events: none;
}


/* Professional Dashboard Styling */
.dashboard-container { background-color: #f8f9fa; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid #dee2e6; min-height: 100vh; }
.nav-link { color: #495057; font-weight: 500; padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 5px; }
.nav-link:hover { background-color: #f1f4f9; color: #0d6efd; }
.nav-link.active { background-color: #e7f1ff; color: #0d6efd; }
.nav-link i { width: 20px; margin-right: 10px; }
.card { border: none; border-radius: 12px; }
.client .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #344767;
}
.client .form-control { padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid #d2d6da; }
.client .form-control:focus { border-color: #5e72e4; box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.2); }
.section-title { font-size: 1.1rem; font-weight: 700; color: #344767; margin-bottom: 1.5rem; position: relative; }

@media (min-width: 992px) {
    .header__main .header__menu .main__menu > li.services__menu .sub__menu > li,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu > li {
        position: relative;
    }

    .header__main .header__menu .main__menu > li.services__menu .sub__menu > li.has__dropdown::after,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu > li.has__dropdown::after {
        right: 12px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
        z-index: 5;
        font-size: 16px;
        pointer-events: none;
    }

    .header__main .header__menu .main__menu > li.services__menu .sub__menu,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu {
        overflow: visible;
    }

    .header__main .header__menu .main__menu > li.services__menu .sub__menu .has__dropdown > .sub-sub__menu,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu .has__dropdown > .sub-sub__menu {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        top: -12px !important;
        left: calc(100% + 2px) !important;
        min-width: 240px;
        padding: 14px;
        border-radius: 10px;
        z-index: 120;
        transform: translateX(8px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    }

    .header__main .header__menu .main__menu > li.services__menu .has__dropdown.is-menu-open {
        z-index: 160;
    }

    .header__main .header__menu .main__menu > li.services__menu .has__dropdown.is-menu-open > .sub-sub__menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(0);
        z-index: 170;
    }

    .header__main .header__menu .main__menu > li.services__menu .sub__menu > li > a,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu > li > a {
        display: block;
        border-radius: 0;
        padding: 8px 28px 8px 12px !important;
        position: relative;
        z-index: 2;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .header__main .header__menu .main__menu > li.services__menu .sub__menu > li:hover > a,
    .header__main .header__menu .main__menu > li.services__menu .sub-sub__menu > li:hover > a {
        background: transparent;
        color: var(--color-primary);
    }

    .header__main .header__menu .main__menu > li.services__menu .has__dropdown.is-menu-open > a {
        background: transparent;
        color: var(--color-primary);
    }
}

/* Keep homepage banner videos and pagination inside the slide viewport. */
.banner__slider .banner__video video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner__slider > .swiper__pagination {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 20;
    height: 16px;
    text-align: center;
    pointer-events: none;
}

.banner__slider > .swiper__pagination .banner-pagination {
    position: static;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 16px;
    margin: 0;
    pointer-events: auto;
}

/* Maintenance notice bar (toggle: MAINTENANCE_NOTICE_ENABLED in .env) */
.maintenance-notice {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #0f1b2d;
    color: #e8eef7;
    font-family: var(--font-default);
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 2px solid #f5b400;
    overflow: hidden;
}

.maintenance-notice__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 18px;
    background: #f5b400;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.maintenance-notice__label i {
    font-size: 16px;
}

.maintenance-notice__track {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.maintenance-notice__marquee {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    animation: maintenance-notice-scroll 40s linear infinite;
    will-change: transform;
}

[dir="rtl"] .maintenance-notice__marquee {
    animation-name: maintenance-notice-scroll-rtl;
}

.maintenance-notice:hover .maintenance-notice__marquee {
    animation-play-state: paused;
}

.maintenance-notice__text {
    flex: 0 0 auto;
    padding: 8px 0;
    padding-inline-end: 6rem;
    white-space: nowrap;
}

@keyframes maintenance-notice-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes maintenance-notice-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-notice__marquee {
        animation: none;
        width: 100%;
    }

    .maintenance-notice__track {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .maintenance-notice__text {
        white-space: normal;
        padding-inline: 16px;
    }

    .maintenance-notice__text[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .maintenance-notice {
        font-size: 13px;
    }

    .maintenance-notice__label {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Floating WhatsApp / Messenger chat buttons (values: SOCIAL_CHAT_* in .env) */
.social-chat {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.social-chat__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-chat__btn:hover,
.social-chat__btn:focus-visible {
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.social-chat__btn--whatsapp {
    background: #25d366;
}

.social-chat__btn--messenger {
    background: #0084ff;
}

.social-chat__label {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    padding: 6px 12px;
    border-radius: 6px;
    background: #17181d;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-chat__btn:hover .social-chat__label,
.social-chat__btn:focus-visible .social-chat__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

[dir="rtl"] .social-chat {
    right: auto;
    left: 30px;
    align-items: flex-start;
}

[dir="rtl"] .social-chat__label {
    right: auto;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-6px);
}

[dir="rtl"] .social-chat__btn:hover .social-chat__label,
[dir="rtl"] .social-chat__btn:focus-visible .social-chat__label {
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 575.98px) {
    .social-chat {
        right: 12px;
        bottom: 20px;
        gap: 10px;
    }

    [dir="rtl"] .social-chat {
        left: 12px;
    }

    .social-chat__btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .social-chat__label {
        display: none;
    }
}

/* Mobile menu drawer: hide the floating chat and back-to-top buttons while it is open */
body:has(#headerOffcanvas.show) .social-chat,
body:has(#headerOffcanvas.show) .back__icon {
    display: none !important;
}

/* ==========================================================================
   Laptop screens (992px – 1599px wide: 13" / 14" MacBook, most Windows laptops,
   small laptop / tablet-landscape windows)
   style.css is sized for a large desktop monitor, so on a laptop the same pixel
   sizes look oversized. This block only scales things down for that range;
   larger monitors and tablets / phones keep the rules of style.css.
   A second block below tightens it once more for 992px – 1199px.
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1599.98px) {
    /* Page width */
    .container {
        max-width: 1140px;
    }

    /* Header */
    .header__infoArea {
        padding: 7px 0;
    }

    .header__main {
        padding: 8px 0;
    }

    .header__logo img {
        max-width: 54px;
    }

    .header__main .header__menu .main__menu {
        gap: 22px;
    }

    .header__main .header__menu .main__menu li a {
        font-size: 15px;
        line-height: 22px;
    }

    .header__main .header__menu .main__menu li .sub__menu li a {
        font-size: 14px;
    }

    /* Buttons */
    .rs-btn {
        font-size: 15px;
        line-height: 22px;
        padding: 12px 24px;
    }

    /* Home banner: lower, so the next section already shows on a laptop screen */
    .bannerSlide__wrapper {
        aspect-ratio: 21 / 7.6;
        padding: 32px 0 48px;
    }

    .hero__text .desc {
        font-size: 16px;
        line-height: 24px;
        margin-top: 16px;
    }

    .hero__text .btn__group {
        margin-top: 20px;
    }

    .hero__text .btn__group .rs-btn {
        font-size: 15px;
        line-height: 22px;
        padding: 12px 26px;
    }

    /* Inner page banner */
    .banner__area .banner__thumbs img {
        height: 330px;
    }

    /* Cards */
    .serviceCard__header .icon,
    .valueCard .icon {
        width: 68px;
        height: 68px;
    }

    .serviceCard__header .icon img,
    .valueCard .icon img {
        height: 44px;
    }

    .about__figure {
        max-width: 500px;
    }

    .about__content p {
        font-size: 16px;
        line-height: 25px;
    }

    /* Headings (style.css size → laptop size) */
    .contact__area .contact__header .title {
        font-size: 44px;
        line-height: 63px;
    }

    .hero__text .title,
    .partner__title .title,
    .about__content .about__title,
    .banner__area .banner__content .title,
    .valueCard .count {
        font-size: 38px;
        line-height: 44px;
    }

    .section__title .title,
    .choose__content .title,
    .page__title .title,
    .meals__area .title {
        font-size: 34px;
        line-height: 41px;
    }

    .section__title .subtitle {
        font-size: 28px;
        line-height: 49px;
    }

    h2,
    .about__content .about__subtitle,
    .newsCard .content .title,
    .blogSingle__inner .content h3,
    .blogSingle__wrapper h2,
    .header__area h4,
    .certificater__header h4,
    .trainingDetails__wrapper .title,
    .accreditationCard .content h4,
    .banner__area .banner__content .subtitle,
    .serviceRequest__area .card .title {
        font-size: 28px;
        line-height: 35px;
    }

    .training-category-intro__title {
        font-size: 25px;
        line-height: 32px;
    }

    .blogPost__single .client__review .review__title h4,
    .blogPost__single .review__form .review__title h4 {
        font-size: 25px;
    }

    h3,
    .serviceCard .title,
    .blogSingle__wrapper blockquote h5,
    .contact__inner .contact__content .title,
    .blogCard .blog__content .title,
    .sessionCard .session__content .title,
    .valueCard .title,
    .procedure__area .procedure__list h4,
    .footer__section .footer__content h4,
    .training-category-modal .modal-title {
        font-size: 22px;
        line-height: 29px;
    }

    .blogPost__single .blog__content h2,
    .blogPost__single .client__review .comments-box h3 {
        font-size: 22px;
    }

    .text-32 { font-size: 28px !important; }
    .text-31 { font-size: 27px !important; }
    .text-29,
    .text-30 { font-size: 26px !important; }
    .text-28 { font-size: 25px !important; }
    .text-27 { font-size: 24px !important; }
    .text-26 { font-size: 23px !important; }
    .text-24,
    .text-25 { font-size: 22px !important; }

    /* Section spacing (the spacing classes the pages use, about three quarters of their size) */
    .py-40 { padding-top: 32px !important; padding-bottom: 32px !important; }
    .py-50 { padding-top: 40px !important; padding-bottom: 40px !important; }
    .py-60 { padding-top: 46px !important; padding-bottom: 46px !important; }
    .py-65 { padding-top: 50px !important; padding-bottom: 50px !important; }
    .py-80 { padding-top: 60px !important; padding-bottom: 60px !important; }
    .py-85 { padding-top: 64px !important; padding-bottom: 64px !important; }
    .py-100 { padding-top: 76px !important; padding-bottom: 76px !important; }
    .pt-40 { padding-top: 32px !important; }
    .pt-50 { padding-top: 40px !important; }
    .pt-60 { padding-top: 46px !important; }
    .pb-50 { padding-bottom: 40px !important; }
    .pb-60 { padding-bottom: 46px !important; }
    .pb-80 { padding-bottom: 60px !important; }
    .pb-100 { padding-bottom: 76px !important; }
    .pb-150 { padding-bottom: 112px !important; }
    .mt-60 { margin-top: 46px !important; }
    .mb-50 { margin-bottom: 40px !important; }
    .mb-60 { margin-bottom: 46px !important; }
}

/* Small laptop windows (992px – 1199px): one step smaller than the block above */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .header__logo img {
        max-width: 48px;
    }

    .header__main .header__menu {
        gap: 12px;
    }

    .header__main .header__menu .main__menu {
        gap: 16px;
    }

    .header__main .header__menu .main__menu li a {
        font-size: 14px;
        line-height: 20px;
    }

    .header__main .header__menu .main__menu li.has__dropdown::after {
        font-size: 16px;
    }

    .rs-btn {
        font-size: 14px;
        line-height: 20px;
        padding: 10px 18px;
    }

    .hero__text .title,
    .partner__title .title,
    .about__content .about__title,
    .banner__area .banner__content .title,
    .valueCard .count {
        font-size: 32px;
        line-height: 39px;
    }

    .section__title .title,
    .choose__content .title,
    .page__title .title,
    .meals__area .title {
        font-size: 30px;
        line-height: 37px;
    }

    h2,
    .about__content .about__subtitle,
    .newsCard .content .title,
    .banner__area .banner__content .subtitle {
        font-size: 24px;
        line-height: 31px;
    }

    .hero__text .desc,
    .about__content p {
        font-size: 15px;
        line-height: 23px;
    }

    /* Three service cards share the row here: smaller icon and title keep the title on one or two lines */
    .serviceCard__header .icon,
    .valueCard .icon {
        width: 56px;
        height: 56px;
    }

    .serviceCard__header .icon img,
    .valueCard .icon img {
        height: 36px;
    }

    .serviceCard .title,
    .valueCard .title {
        font-size: 19px;
        line-height: 26px;
    }

    .about__figure {
        max-width: 420px;
    }
}

/* ==========================================================================
   Client portal (the pages with the "Client Portal" side menu), 768px – 1599px
   The side menu was a share of the page width (2 of 12 columns), so on a laptop
   it became too narrow and every label wrapped onto two lines. Here it has a
   fixed width, the labels stay on one line and the content takes the rest.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1599.98px) {
    .dashboard-container .sidebar {
        flex: 0 0 228px;
        width: 228px;
        max-width: 228px;
    }

    .dashboard-container .sidebar + [class*="col-"] {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .dashboard-container .sidebar h5 {
        font-size: 16px;
        white-space: nowrap;
    }

    .dashboard-container .sidebar .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        font-size: 14px;
        line-height: 20px;
        padding: 9px 12px;
        margin-bottom: 3px;
        white-space: nowrap;
        text-align: left;
    }

    /* Logout stays centred, as before */
    .dashboard-container .sidebar button.nav-link {
        justify-content: center;
    }

    .dashboard-container .sidebar .nav-link i {
        flex: 0 0 20px;
        width: 20px;
        margin-right: 0;
        font-size: 14px;
        text-align: center;
    }

    /* Content text: one step smaller than on a large monitor */
    .dashboard-container h3,
    .dashboard-container .h3 {
        font-size: 20px;
        line-height: 27px;
    }

    .dashboard-container h4,
    .dashboard-container .h4 {
        font-size: 20px;
    }

    .dashboard-container h5,
    .dashboard-container .h5 {
        font-size: 17px;
    }

    .dashboard-container h6,
    .dashboard-container .h6 {
        font-size: 15px;
    }

    .dashboard-container p,
    .dashboard-container .btn:not(.btn-sm) {
        font-size: 15px;
    }

    .dashboard-container p.small,
    .dashboard-container .small {
        font-size: 13px;
    }

    .dashboard-container .card-body.p-4 {
        padding: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .dashboard-container .sidebar {
        flex-basis: 218px;
        width: 218px;
        max-width: 218px;
    }

    .dashboard-container .sidebar + [class*="col-"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Tablet (768px – 991px): the narrowest width that still shows the side menu */
@media (min-width: 768px) and (max-width: 991.98px) {
    .dashboard-container .sidebar {
        flex-basis: 200px;
        width: 200px;
        max-width: 200px;
    }

    .dashboard-container .sidebar .nav-link {
        gap: 7px;
        padding: 9px 8px;
        font-size: 13px;
    }

    .dashboard-container .sidebar .nav-link i {
        flex-basis: 18px;
        width: 18px;
        font-size: 13px;
    }

    .dashboard-container .sidebar + [class*="col-"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ==========================================================================
   Client portal look: side menu, page head and the dashboard page (.clientDash)
   Design only. The widths of the side menu per screen size are set in the
   "Client portal" blocks above.
   ========================================================================== */
.dashboard-container {
    background-color: #f3f6fb;
}

/* ---- Side menu ---- */
.clientPortal__sidebar {
    box-shadow: 4px 0 18px rgba(14, 49, 87, 0.04);
}

.clientPortal__brand h5 {
    position: relative;
    margin-bottom: 0;
    padding-left: 14px;
    letter-spacing: 0.05em;
}

.clientPortal__brand h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #007bff, #6f42c1);
}

.clientPortal__nav .nav-link {
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Font Awesome replaces <i> with <svg> on this site, so every icon rule names both */
.clientPortal__nav .nav-link i,
.clientPortal__nav .nav-link svg {
    flex: 0 0 18px;
    width: 18px;
    color: #7b8aa3;
    transition: color 0.18s ease;
}

.clientPortal__nav .nav-link:hover {
    transform: translateX(3px);
}

.clientPortal__nav .nav-link:hover i,
.clientPortal__nav .nav-link:hover svg {
    color: #0d6efd;
}

.clientPortal__nav .nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #4f6ef7 55%, #6f42c1 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.28);
}

.clientPortal__nav .nav-link.active i,
.clientPortal__nav .nav-link.active svg,
.clientPortal__nav .nav-link.text-danger i,
.clientPortal__nav .nav-link.text-danger svg {
    color: inherit;
}

/* ---- Page head (Welcome, status) ---- */
.clientPortal__head {
    position: relative;
    overflow: hidden;
    padding: 18px 22px 18px 26px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(14, 49, 87, 0.05);
}

.clientPortal__head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #007bff, #6f42c1);
}

/* ---- Dashboard ---- */
.clientDash__grow {
    flex: 1 1 auto;
    min-width: 0;
}

/* Overview card */
.clientDash__hero {
    position: relative;
    background: linear-gradient(120deg, #e8f2ff 0%, #f1edff 58%, #fdf1f8 100%);
}

.clientDash__hero::before,
.clientDash__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.clientDash__hero::before {
    top: -90px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.20), rgba(0, 123, 255, 0));
}

.clientDash__hero::after {
    bottom: -110px;
    left: 30%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.16), rgba(111, 66, 193, 0));
}

.clientDash__hero .card-body {
    position: relative;
    z-index: 1;
}

.clientDash__contact {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(31, 64, 128, 0.10);
}

.clientDash__contactIcon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #6f42c1);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.25);
}

/* Key numbers */
.clientDash__stat {
    --cd-accent: #0d6efd;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clientDash__stat--success { --cd-accent: #198754; }
.clientDash__stat--info { --cd-accent: #0dcaf0; }
.clientDash__stat--warning { --cd-accent: #ffc107; }
.clientDash__stat--danger { --cd-accent: #dc3545; }

.clientDash__stat::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--cd-accent);
}

.clientDash__stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(14, 49, 87, 0.12) !important;
}

.clientDash .clientDash__stat h3 {
    font-size: 26px;
    line-height: 32px;
}

.clientDash__stat p.text-uppercase {
    letter-spacing: 0.03em;
}

/* Small text: the site's fixed line height is made for body text and is too loose here */
.clientDash .small {
    line-height: 1.45;
}

.clientDash__statIcon {
    width: 44px;
    height: 44px;
    font-size: 16px;
    box-shadow: 0 8px 14px -6px var(--cd-accent);
    transition: transform 0.2s ease;
}

.clientDash__stat:hover .clientDash__statIcon {
    transform: scale(1.08) rotate(-4deg);
}

/* Section cards */
.clientDash__panelIcon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
}

.clientDash__panelIcon--blue { background: #e7f1ff; color: #0d6efd; }
.clientDash__panelIcon--indigo { background: #ece9ff; color: #5b4bdb; }
.clientDash__panelIcon--green { background: #e3f6ec; color: #198754; }
.clientDash__panelIcon--amber { background: #fff4d6; color: #b7791f; }

.clientDash__progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef6;
}

.clientDash__progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #007bff, #6f42c1);
}

/* Rows inside a section card: divided by a hairline instead of a box around each one */
.clientDash__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 10px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.clientDash__row--block {
    display: block;
}

.clientDash__list > .clientDash__row + .clientDash__row {
    border-top: 1px solid #edf1f6;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.clientDash__list--split .clientDash__row {
    height: 100%;
    border-bottom: 1px solid #edf1f6;
}

.clientDash__list--split > [class*="col-"]:last-child .clientDash__row {
    border-bottom: 0;
}

.clientDash__row:hover {
    background: #f4f8ff;
}

a.clientDash__row:hover {
    transform: translateX(3px);
}

.clientDash__rowIcon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
}

.clientDash__rowIcon--done { background: #e3f6ec; color: #198754; }
.clientDash__rowIcon--pending { background: #fff4d6; color: #b7791f; }

.clientDash__note {
    padding: 16px;
    border-left: 3px solid #0d6efd;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f7ff, #f5f1ff);
}

/* Quick links: tiles with the icon above the label */
.clientDash__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 14px 6px 12px;
    border: 1px solid #e6ebf3;
    border-radius: 14px;
    background: #f8fafe;
    color: #1f2a44;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.clientDash__tileIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: #0d6efd;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(31, 64, 128, 0.10);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.clientDash__tileLabel {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 17px;
}

.clientDash__tile:hover,
.clientDash__tile:focus-visible {
    border-color: #b6d0ff;
    background: linear-gradient(135deg, #eef4ff, #f4efff);
    box-shadow: 0 10px 22px rgba(31, 64, 128, 0.12);
    color: #0b5ed7;
    transform: translateY(-3px);
}

.clientDash__tile:hover .clientDash__tileIcon,
.clientDash__tile:focus-visible .clientDash__tileIcon {
    background: linear-gradient(135deg, #007bff, #6f42c1);
    color: #fff;
    transform: scale(1.06);
}

/* Two columns of setup rows from 768px: space between the columns */
@media (min-width: 768px) {
    .clientDash__list--split > [class*="col-"]:nth-child(odd) {
        padding-right: 10px;
    }

    .clientDash__list--split > [class*="col-"]:nth-child(even) {
        padding-left: 10px;
    }
}

/* Phone: the side menu becomes a strip of links that scrolls sideways */
@media (max-width: 767.98px) {
    .clientPortal__sidebar {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #dee2e6;
        box-shadow: none;
    }

    .clientPortal__nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .clientPortal__nav::-webkit-scrollbar {
        display: none;
    }

    .clientPortal__nav .nav-link {
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 7px 14px;
        border: 1px solid #e3e8f1;
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
        line-height: 20px;
        white-space: nowrap;
    }

    .clientPortal__nav .nav-link:hover {
        transform: none;
    }

    .clientPortal__nav .nav-link.active {
        border-color: transparent;
    }

    .clientPortal__nav .nav-link i,
    .clientPortal__nav .nav-link svg {
        flex: 0 0 auto;
        width: auto;
        margin-right: 6px;
    }

    .clientPortal__nav hr {
        display: none;
    }

    .clientPortal__main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .clientPortal__head {
        padding: 14px 16px 14px 20px;
    }

    .clientDash .clientDash__stat h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .clientDash__statIcon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Two narrow cards per row: a smaller label keeps long words ("COMPLETION") in one piece */
    .clientDash .clientDash__stat p.text-uppercase {
        font-size: 11px;
        letter-spacing: 0.02em;
    }
}

/* Four narrow cards in a row beside the side menu */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .clientDash .clientDash__stat p.text-uppercase {
        font-size: 12px;
    }
}

/* People who turned animations off in their system settings */
@media (prefers-reduced-motion: reduce) {
    .clientPortal__nav .nav-link,
    .clientDash__stat,
    .clientDash__statIcon,
    .clientDash__row,
    .clientDash__tile,
    .clientDash__tileIcon,
    .clientPortal__main .btn {
        transition: none;
    }

    .clientPortal__nav .nav-link:hover,
    .clientDash__stat:hover,
    .clientDash__stat:hover .clientDash__statIcon,
    a.clientDash__row:hover,
    .clientDash__tile:hover,
    .clientDash__tile:hover .clientDash__tileIcon,
    .clientPortal__main .btn:hover {
        transform: none;
    }
}

/* ==========================================================================
   Client portal pages other than the dashboard: page heading, cards, forms
   and tables in the same look. Everything is limited to .clientPortal__main.
   ========================================================================== */

/* Page heading of a page that has its own title and buttons (report, CAP, resource library) */
.clientPage__head {
    overflow: hidden;
    padding: 20px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(14, 49, 87, 0.06);
}

.clientPage__head > * {
    position: relative;
    z-index: 1;
}

/* The buttons of the heading wrap onto more lines when there is no room */
.clientPage__head > :last-child:not(:first-child) {
    flex-wrap: wrap !important;
}

.clientPortal__main .clientPage__intro h4,
.clientPortal__main .clientPage__head h4 {
    font-size: 20px;
    line-height: 27px;
}

/* Cards */
.clientPortal__main .card {
    border-radius: 14px !important;
}

.clientPortal__main .card > .card-body.p-0,
.clientPortal__main .card > .card-header:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.clientPortal__main .card > .card-body.p-0 {
    overflow: hidden;
    border-radius: 14px;
}

/* Form sections: "icon + title" line above each group of fields */
.clientPortal__main .client > .col-12.border-bottom {
    border-bottom-color: #e6ebf3 !important;
    padding-bottom: 12px !important;
}

.clientPortal__main .client > .col-12.border-bottom h6 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2a44 !important;
    font-size: 16px;
}

.clientPortal__main .client > .col-12.border-bottom h6 i,
.clientPortal__main .client > .col-12.border-bottom h6 svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    border-radius: 10px;
    background: #e7f1ff;
    color: #0d6efd;
}

.clientPortal__main .client > .col-12.border-bottom h6 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.clientPortal__main .client > .col-12.border-bottom h6 svg {
    box-sizing: border-box;
    padding: 9px;
}

.clientPortal__main .row.client.mb-5 {
    margin-bottom: 2rem !important;
}

.clientPortal__main .section-title {
    position: relative;
    padding-left: 14px;
    color: #1f2a44;
}

.clientPortal__main .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #007bff, #6f42c1);
}

/* Fields */
.clientPortal__main .form-label,
.clientPortal__main form label {
    color: #344767;
    font-size: 13px;
    font-weight: 600;
}

.clientPortal__main .form-control,
.clientPortal__main .form-select {
    border-color: #d8dfeb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.clientPortal__main .form-control:focus,
.clientPortal__main .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.clientPortal__main form .border-top.pt-4 {
    margin-top: 2rem !important;
    border-top-color: #e6ebf3 !important;
}

/* Tables: gradient heading row, light row lines, no outer frame (the card is the frame) */
.clientPortal__main .table::after {
    display: none;
}

.clientPortal__main .table thead::after {
    border-radius: 0;
    background: linear-gradient(90deg, #0b5ed7 0%, #4f6ef7 55%, #6f42c1 100%);
}

.clientPortal__main .table thead tr th {
    padding: 14px 16px;
    color: #fff !important;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.clientPortal__main .table tbody tr {
    border: 0;
    border-bottom: 1px solid #edf1f6;
    transition: background-color 0.18s ease;
}

.clientPortal__main .table tbody tr:last-of-type {
    border-bottom: 0;
}

.clientPortal__main .table tbody tr:hover > * {
    background-color: #f6f9ff;
}

.clientPortal__main .table tbody tr td {
    padding: 14px 16px;
    border: 0;
    border-radius: 0 !important;
    font-size: 14px;
    line-height: 21px;
    /* long text (a service name) wraps, so the table fits its card without scrolling sideways */
    white-space: normal;
}

.clientPortal__main .table tbody tr td .badge,
.clientPortal__main .table tbody tr td .btn {
    white-space: nowrap;
}


/* Phone: a table marked .clientTable shows each row as a block of "label: value" lines */
@media (max-width: 767.98px) {
    .clientPage__head {
        padding: 16px;
    }

    .clientPortal__main .clientTable,
    .clientPortal__main .clientTable tbody,
    .clientPortal__main .clientTable tbody tr,
    .clientPortal__main .clientTable tbody tr td {
        display: block;
        width: 100%;
    }

    .clientPortal__main .clientTable thead {
        display: none;
    }

    .clientPortal__main .clientTable tbody tr {
        padding: 10px 16px;
        border-bottom: 1px solid #e6ebf3;
    }

    .clientPortal__main .clientTable tbody tr td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        max-width: none !important;
        padding: 6px 0 !important;
        text-align: right;
        white-space: normal;
        background: transparent !important;
    }

    .clientPortal__main .clientTable tbody tr td::before {
        content: attr(data-label);
        flex: 0 0 36%;
        color: #7b8aa3;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 21px;
        text-align: left;
        text-transform: uppercase;
    }

    .clientPortal__main .clientTable tbody tr td > * {
        min-width: 0;
    }
}

/* A table with many columns (.clientTable--wide, Audit History) does not fit beside the side menu on a
   laptop either: from 768px to 1399px its rows are shown as blocks too, three values per line
   (two below 992px) */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .clientPortal__main .clientTable--wide,
    .clientPortal__main .clientTable--wide tbody {
        display: block;
        width: 100%;
    }

    .clientPortal__main .clientTable--wide thead {
        display: none;
    }

    .clientPortal__main .clientTable--wide tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 28px;
        padding: 16px 20px;
        border-bottom: 1px solid #e6ebf3;
    }

    .clientPortal__main .clientTable--wide tbody tr td {
        display: block;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal;
        background: transparent !important;
    }

    .clientPortal__main .clientTable--wide tbody tr td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #7b8aa3;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 16px;
        text-transform: uppercase;
    }

    .clientPortal__main .clientTable--wide tbody tr td > .d-flex {
        justify-content: flex-start !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .clientPortal__main .clientTable--wide tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Client portal buttons: one modern set for every page.
   Filled = blue-to-purple gradient, outline = soft tinted pill that fills on hover.
   The round + / - row buttons of the employee and partner tables (.btn-action) keep their own look.
   ========================================================================== */
.clientPortal__main .btn:not(.btn-action):not(.btn-close) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.clientPortal__main .btn-sm:not(.btn-action) {
    padding: 7px 14px;
    font-size: 12.5px;
    line-height: 18px;
}

/* Filled */
.clientPortal__main .btn-primary:not(.btn-action) {
    border-color: transparent;
    background: linear-gradient(135deg, #0d6efd 0%, #4f6ef7 55%, #6f42c1 100%);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22) !important;
}

.clientPortal__main .btn-success:not(.btn-action) {
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a 0%, #198754 60%, #0f766e 100%);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(25, 135, 84, 0.22) !important;
}

.clientPortal__main .btn-primary:not(.btn-action):hover,
.clientPortal__main .btn-primary:not(.btn-action):focus-visible,
.clientPortal__main .btn-success:not(.btn-action):hover,
.clientPortal__main .btn-success:not(.btn-action):focus-visible {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.clientPortal__main .btn-primary:not(.btn-action):hover,
.clientPortal__main .btn-primary:not(.btn-action):focus-visible {
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.32) !important;
}

.clientPortal__main .btn-success:not(.btn-action):hover,
.clientPortal__main .btn-success:not(.btn-action):focus-visible {
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.30) !important;
}

/* Outline: soft tinted pill, filled on hover */
.clientPortal__main .btn-outline-primary:not(.btn-action) {
    border-color: #cfe0ff;
    background: #eef4ff;
    color: #0d6efd;
}

.clientPortal__main .btn-outline-primary:not(.btn-action):hover,
.clientPortal__main .btn-outline-primary:not(.btn-action):focus-visible,
.clientPortal__main .btn-outline-primary:not(.btn-action):active {
    border-color: transparent;
    background: linear-gradient(135deg, #0d6efd 0%, #4f6ef7 55%, #6f42c1 100%);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.28);
    transform: translateY(-1px);
}

.clientPortal__main .btn-outline-success:not(.btn-action) {
    border-color: #bfe6cf;
    background: #e8f7ee;
    color: #198754;
}

.clientPortal__main .btn-outline-success:not(.btn-action):hover,
.clientPortal__main .btn-outline-success:not(.btn-action):focus-visible,
.clientPortal__main .btn-outline-success:not(.btn-action):active {
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a 0%, #198754 60%, #0f766e 100%);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.26);
    transform: translateY(-1px);
}

/* Neutral (Back, Reset): white pill that darkens slightly, text stays dark */
.clientPortal__main .btn-outline-secondary:not(.btn-action) {
    border-color: #d8dfeb;
    background: #fff;
    color: #475569;
}

.clientPortal__main .btn-outline-secondary:not(.btn-action):hover,
.clientPortal__main .btn-outline-secondary:not(.btn-action):focus-visible,
.clientPortal__main .btn-outline-secondary:not(.btn-action):active,
.clientPortal__main .btn-outline-secondary:not(.btn-action):hover svg,
.clientPortal__main .btn-outline-secondary:not(.btn-action):hover i {
    border-color: #c3cddc;
    background-color: #f1f5f9;
    color: #1f2a44 !important;
}

.clientPortal__main .btn-outline-secondary:not(.btn-action):hover svg,
.clientPortal__main .btn-outline-secondary:not(.btn-action):hover i {
    background-color: transparent;
}

.clientPortal__main .btn-outline-secondary:not(.btn-action):hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* Icons inside a filled or hovered button always follow the text colour */
.clientPortal__main .btn-primary:not(.btn-action) svg,
.clientPortal__main .btn-primary:not(.btn-action) i,
.clientPortal__main .btn-success:not(.btn-action) svg,
.clientPortal__main .btn-success:not(.btn-action) i,
.clientPortal__main .btn-outline-primary:not(.btn-action):hover svg,
.clientPortal__main .btn-outline-primary:not(.btn-action):hover i,
.clientPortal__main .btn-outline-success:not(.btn-action):hover svg,
.clientPortal__main .btn-outline-success:not(.btn-action):hover i {
    color: #fff !important;
}

/* A button that is only an icon (view, download, reset): a round button */
.clientPortal__main .btn.clientBtn--icon {
    flex: 0 0 auto !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 13px;
}

.clientPortal__main .btn.clientBtn--icon svg,
.clientPortal__main .btn.clientBtn--icon i {
    margin: 0 !important;
}

/* The save buttons of the employee and partner tables use the site button (.rs-btn): same filled look */
.clientPortal__main .rs-btn.rs-btn-primary {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #4f6ef7 55%, #6f42c1 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.clientPortal__main .rs-btn.rs-btn-primary:hover,
.clientPortal__main .rs-btn.rs-btn-primary:focus-visible {
    filter: brightness(1.07);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.32) !important;
    transform: translateY(-1px);
}

/* Row buttons of the partner and employee tables (remove row / add row): round soft buttons
   that fill with their colour on hover, like the other icon buttons of the portal */
.clientPortal__main .btn.btn-action {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    font-size: 13px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.clientPortal__main .btn.btn-action.btn-outline-danger {
    border-color: #f9c9cf;
    background: #fdecee;
    color: #dc3545;
}

.clientPortal__main .btn.btn-action.btn-outline-success {
    border-color: #bfe6cf;
    background: #e8f7ee;
    color: #198754;
}

.clientPortal__main .btn.btn-action.btn-outline-danger:hover,
.clientPortal__main .btn.btn-action.btn-outline-danger:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, #f43f5e 0%, #dc3545 60%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.28);
    transform: translateY(-1px);
}

.clientPortal__main .btn.btn-action.btn-outline-success:hover,
.clientPortal__main .btn.btn-action.btn-outline-success:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a 0%, #198754 60%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(25, 135, 84, 0.28);
    transform: translateY(-1px);
}

.clientPortal__main .btn.btn-action:active {
    transform: scale(0.92);
}

.clientPortal__main .btn.btn-action svg,
.clientPortal__main .btn.btn-action i {
    color: inherit !important;
}

/* A little more room between the two buttons of the last row */
.clientPortal__main td > .d-flex.gap-1:has(> .btn-action) {
    gap: 8px !important;
}

@media (prefers-reduced-motion: reduce) {
    .clientPortal__main .btn.btn-action {
        transition: none;
    }

    .clientPortal__main .btn.btn-action:hover,
    .clientPortal__main .btn.btn-action:active {
        transform: none;
    }
}

/* Side menu stays in place while the content scrolls (768px and wider, where it is a side menu).
   It sticks just under the site header; --client-header-h is the height of the header's menu bar,
   set by the portal layout. A menu taller than the screen scrolls inside itself. */
@media (min-width: 768px) {
    .dashboard-container .clientPortal__sidebar {
        position: sticky;
        top: var(--client-header-h, 80px);
        align-self: flex-start;
        height: calc(100vh - var(--client-header-h, 80px));
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #d5dcea transparent;
    }

    .dashboard-container .clientPortal__sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-container .clientPortal__sidebar::-webkit-scrollbar-thumb {
        border-radius: 6px;
        background: #d5dcea;
    }

    .dashboard-container .clientPortal__main {
        min-height: calc(100vh - var(--client-header-h, 80px));
    }
}

/* ==========================================================================
   Login and forgot-password pages: the shared two-part card (.auth-login)
   A blue brand panel beside the form from 992px, the form alone below that.
   Uses the website's own blue (--color-primary / --color-primary2) on the dark photo.
   ========================================================================== */
/* The card sits in the middle of the screen and fits one laptop screen without scrolling */
.auth-login-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 114px);
    padding: 48px 0;
}

.auth-login-section > .container {
    width: 100%;
}

.authentication__wapper.auth-login {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    max-width: 940px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--color-white-rgb), 0.16);
    border-radius: 22px;
    background: rgba(6, 18, 34, 0.80);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---- Brand panel ---- */
.auth-login__brand {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 40px 36px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-primary) 0%, #0a62d0 48%, #0b3d91 100%);
    color: var(--color-white);
}

.auth-login__brand::before,
.auth-login__brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--color-white-rgb), 0.08);
    pointer-events: none;
}

.auth-login__brand::before {
    top: -90px;
    right: -70px;
    width: 240px;
    height: 240px;
}

.auth-login__brand::after {
    bottom: -120px;
    left: -80px;
    width: 280px;
    height: 280px;
}

.auth-login__brand > * {
    position: relative;
    z-index: 1;
}

/* Icon badge at the top of the brand panel (the logo itself is in the site header) */
.auth-login__brandIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(var(--color-white-rgb), 0.28);
    border-radius: 16px;
    background: rgba(var(--color-white-rgb), 0.16);
    color: var(--color-white);
    font-size: 28px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.auth-login__eyebrow {
    margin: 0 0 8px;
    color: rgba(var(--color-white-rgb), 0.82);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 18px;
    text-transform: uppercase;
}

.auth-login__brandTitle {
    margin: 0 0 10px;
    color: var(--color-white);
    font-size: 34px;
    font-weight: 700;
    line-height: 42px;
}

.auth-login__brandText {
    margin: 0;
    color: rgba(var(--color-white-rgb), 0.86);
    font-size: 15px;
    line-height: 24px;
}

.auth-login__points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-login__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-login__points li span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(var(--color-white-rgb), 0.16);
    font-size: 17px;
}

/* ---- Form panel ---- */
.auth-login__panel {
    padding: 40px;
}

.auth-login__head {
    margin-bottom: 20px;
}

.auth-login__title {
    margin: 0 0 6px;
    color: var(--color-white);
    font-size: 26px;
    font-weight: 700;
    line-height: 34px;
}

.auth-login__hint {
    margin: 0;
    color: rgba(var(--color-white-rgb), 0.72);
    font-size: 14px;
    line-height: 22px;
}

/* Client / Student switch: the chosen one is filled with the site's blue */
.auth-login .login-type-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-bottom: 22px;
    padding: 5px;
    border: 1px solid rgba(var(--color-white-rgb), 0.16);
    border-radius: 14px;
    background: rgba(var(--color-white-rgb), 0.07);
}

.auth-login .login-type-option {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(var(--color-white-rgb), 0.76);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.auth-login .login-type-option i {
    font-size: 18px;
}

.auth-login .login-type-option.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary2));
    color: var(--color-white);
    box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.38);
}

.auth-login .login-type-option:not(.active):not(:disabled):hover,
.auth-login .login-type-option:not(.active):not(:disabled):focus {
    background: rgba(var(--color-white-rgb), 0.1);
    color: var(--color-white);
}

/* Fields */
.auth-login .form-group > .mb-3 {
    margin-bottom: 0 !important;
}

.auth-login .form-group label {
    margin-bottom: 8px;
    color: rgba(var(--color-white-rgb), 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.auth-login .form-group .form-control {
    height: 50px;
    padding: 11px 46px;
    border: 1px solid rgba(var(--color-white-rgb), 0.18);
    border-radius: 12px;
    background-color: rgba(var(--color-white-rgb), 0.07);
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px 18px;
    color: var(--color-white);
    font-size: 15px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

/* Icons inside the two fields (drawn by the styles, so the fields themselves are untouched) */
.auth-login #web_login_email,
.auth-login .form-group .form-control.auth-field--mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.62)'%3E%3Cpath d='M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm17 4.238-7.928 7.1L4 7.216V19h16V7.238zM4.511 5l7.55 6.662L19.502 5H4.511z'/%3E%3C/svg%3E");
}

.auth-login #password,
.auth-login .form-group .form-control.auth-field--lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.62)'%3E%3Cpath d='M6 8V7a6 6 0 1 1 12 0v1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h2zm13 2H5v10h14V10zm-8 5.732a2 2 0 1 1 2 0V18h-2v-2.268zM8 8h8V7a4 4 0 1 0-8 0v1z'/%3E%3C/svg%3E");
}

.auth-login .form-group .form-control::placeholder {
    color: rgba(var(--color-white-rgb), 0.5);
}

.auth-login .form-group .form-control:focus {
    border-color: var(--color-primary2);
    background-color: rgba(var(--color-white-rgb), 0.1);
    box-shadow: 0 0 0 4px rgba(30, 173, 255, 0.18);
}

/* A saved login filled in by the browser keeps the dark field instead of turning white */
.auth-login .form-group .form-control:-webkit-autofill,
.auth-login .form-group .form-control:-webkit-autofill:hover,
.auth-login .form-group .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-white);
    caret-color: var(--color-white);
    transition: background-color 9999s ease-out 0s;
}

.auth-login .form-group .eye-icon {
    color: rgba(var(--color-white-rgb), 0.72);
}

.auth-login .forget {
    margin: 4px 0 18px;
}

.auth-login__forgot {
    color: var(--color-primary2);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-login__forgot:hover,
.auth-login__forgot:focus {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Login button */
.authentication__wapper.auth-login .submit__btn {
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary2));
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.36);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.authentication__wapper.auth-login .submit__btn:not(.disabled):hover,
.authentication__wapper.auth-login .submit__btn:not(.disabled):focus-visible {
    filter: brightness(1.06);
    box-shadow: 0 16px 30px rgba(var(--color-primary-rgb), 0.46);
    transform: translateY(-1px);
}

.auth-login .account__meta {
    margin-top: 22px;
    color: rgba(var(--color-white-rgb), 0.76);
    font-size: 15px;
    line-height: 22px;
}

.auth-login .account__meta a {
    color: var(--color-primary2);
    font-weight: 600;
}

.auth-login .account__meta a:hover {
    color: var(--color-white);
}

/* Below 992px: the form alone, centred, with the logo above the title */
@media screen and (max-width: 991.98px) {
    .auth-login-section {
        min-height: 0;
        padding: 40px 0;
    }

    .authentication__wapper.auth-login {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
    }

    .auth-login__panel {
        padding: 32px 28px;
    }

    .auth-login__head {
        text-align: center;
    }
}

/* Phone */
@media screen and (max-width: 575px) {
    .auth-login-section {
        padding: 24px 0;
    }

    .authentication__wapper.auth-login {
        border-radius: 18px;
    }

    .auth-login__panel {
        padding: 24px 18px;
    }

    .auth-login__title {
        font-size: 22px;
        line-height: 30px;
    }

    .auth-login .login-type-switch {
        margin-bottom: 18px;
    }

    .auth-login .login-type-option {
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login .login-type-option,
    .authentication__wapper.auth-login .submit__btn,
    .auth-login .form-group .form-control {
        transition: none;
    }

    .authentication__wapper.auth-login .submit__btn:hover {
        transform: none;
    }
}

.auth-login .login-type-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.authentication__wapper.auth-login .submit__btn:disabled,
.authentication__wapper.auth-login .submit__btn.disabled {
    cursor: not-allowed;
    filter: none;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

