/*
 * The landing page's own CSS — moved here from the reference's inline
 * <style> blocks (ADR 0021 § 7). The reference's rules and breakpoints,
 * plus the classes that replace its `style="..."` attributes (template
 * header comment) and D-037's added band; the reference's own custom
 * max-width breakpoints (1156px, 903px, 787px, 767px, 557px,
 * 377px) are unchanged (docs/adr/0021-the-sso-landing-lives-in-landing.md
 * § Context, docs/parity/001-login.md § Responsive behaviour).
 *
 * `.lds-ring` (the reference's loader) is not carried over: no element with
 * that class exists anywhere in the reference's rendered DOM, so the ring
 * this CSS would style is unreachable dead code (docs/parity/001-login.md
 * § Loader).
 */
html {
    height: 100%;
}

body {
    height: 100%;
}

.desc_area > p {
    margin-bottom: 10px;
}

.container-fluid {
    height: 100%;
}

.container-fluid > .row {
    height: 100%;
}

.set-bg-color {
    background-color: #3f8d8a;
    padding: 0px;
    height: 100%;
}

.set-bg-color > img {
    width: 100%;
}

.login_register_block {
    padding: 20px;
}

.bg-image {
    background-image: url("../img/background_image.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

.bottom_bg_image {
    background-image: url("../img/bottom_image.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    background-position: bottom;
    padding: 0px;
    opacity: 0.05;
    margin-top: 0px;
}

.section_logos {
    padding-top: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 45px;
}

.logos {
    padding-top: 30px;
}

.logo_below_text {
    margin-top: 15px;
    text-align: center;
}

.logo_below_text > h3 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 0px;
}

.logo_below_text > span {
    font-size: 20px;
    font-weight: 300;
}

.logo_below_text > span {
    text-align: center;
    color: #fff;
}

.logo_below_text > h3 {
    text-align: center;
    color: #fff;
}

.bottom_bar_section {
    flex: 0 0 auto;
    width: 100%;
    background-color: #3f8d8a;
    border-top-right-radius: 60px;
    border-top-left-radius: 60px;
    -webkit-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.25);
    -moz-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.25);
    box-shadow: 0px -5px 3px rgb(50 50 50 / 25%);
}

.adjust_bottom_image {
    bottom: -100px;
    width: 50%;
    position: absolute;
}

.images_Section > div > div {
    height: 70px;
    border: 1px solid #fff;
    width: 2px;
    position: relative;
    top: 75px;
}

.images_Section > div > div > div {
    position: relative;
    top: 80px;
    font-size: 13px;
    width: 100px;
    right: 45px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.images_Section > div > .div1 {
    right: 19px;
}

.images_Section > div > .div2 {
    right: 20px;
}

.images_Section > div > .div3 {
    right: 19px;
}

.images_Section > div > .div4 {
    right: 19px;
}

.images_Section > div > .div5 {
    right: 19px;
}

.images_Section > div {
    border: 1px solid #fff;
    border-radius: 100px;
    height: 80px;
    width: 80px;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 50px;
}

.images_Section > div > img {
    width: 40px;
}

.images_Section {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* section 2 css */

.login_register_area > div > small {
    color: #9b9595;
}

.login_register_area {
    padding-top: 150px;
    display: flex;
    flex-direction: column;
}

.a_b_1 > img {
    width: 17px;
    position: relative;
    right: 4px;
}

.a_b_1 {
    background: #666666;
    color: #eee;
    padding: 3px 13px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    display: flex;
    align-items: center;
    border: 0px;
    font-size: 12px;
    text-decoration: none;
}

.a_b_2 {
    background: #FECC05;
    border: 0px;
    width: 100%;
    padding: 3px 53px;
    font-size: 12px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.custom_block {
    box-shadow: 1px 2px 8px -2px #888888;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 445px;
    border: 2px solid #c0c0c0;
    padding: 10px 20px;
}

.custom_style_md_6 {
    display: flex;
    justify-content: center;
}

.bottom_hr_link {
    border: 1px solid #9b9595;
    height: 1px;
    width: 100%;
    margin-top: 15px;
    background: #9b9595;
}

.section_about_sarawak {
    margin-top: 15px;
}

.section_about_sarawak > .d-flex {
    width: 90%;
    margin: 20px auto;
}

.write_area_1 > p {
    font-size: 16px;
    color: #707070;
}

.write_area_1 {
    padding-left: 30px;
}

.custom_md_6_1 {
    padding: 0px 145px;
}

.bottom_width > .bottom_image {
    width: 55px;
}

.write_area_1 > p.bottom_wala_text {
    margin: 0px;
    font-size: 10px;
}

/*
 * Same specificity (0,1,0) as the @media (max-width: 557px) rule below that
 * sets `.bottom_wala_text { width: 100%; }` — kept as a separate, lower-
 * specificity rule from the block above (0,2,1) so that query can still win
 * by source order at narrow widths. Folding `width` into the block above
 * broke exactly that at 375px/550px, measured while fixing the font-size
 * specificity defect this comment's sibling rule closes (BLOCKER, this
 * REFACTOR): `.write_area_1 > p.bottom_wala_text`'s specificity beat the
 * media query unconditionally, so the disclaimer stopped shrinking to its
 * container below 557px and the page overflowed sideways instead.
 */
.bottom_wala_text {
    width: 462px;
}

/* section 2 css */

@media (max-width: 1156px) {
    .images_Section > div {
        border: 1px solid #fff;
        border-radius: 100px;
        height: 75px;
        width: 75px;
        margin: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 50px;
    }

    .images_Section > div > div > div {
        position: relative;
        top: 80px;
        width: 100px;
        right: 45px;
        color: #fff;
        font-weight: bold;
        text-align: center;
        font-size: 14px !important;
    }
}

@media (max-width: 903px) {
    .login_register_area {
        padding-top: 150px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .images_Section > div > div > div {
        position: relative;
        top: 80px;
        width: 100px;
        right: 45px;
        color: #fff;
        font-weight: bold;
        text-align: center;
        font-size: 12px !important;
    }

    .images_Section > div {
        border: 1px solid #fff;
        border-radius: 100px;
        height: 70px;
        width: 70px;
        margin: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 50px;
    }

    .custom_block {
        box-shadow: 1px 2px 8px -2px #888888;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 359px;
        border: 2px solid #c0c0c0;
        padding: 20px;
    }
}

@media (max-width: 787px) {
    .images_Section > div > div > div {
        position: relative;
        top: 80px;
        width: 100px;
        right: 45px;
        color: #fff;
        font-weight: bold;
        text-align: center;
        font-size: 11px !important;
    }

    .images_Section > div {
        border: 1px solid #fff;
        border-radius: 100px;
        height: 65px;
        width: 65px;
        margin: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 50px;
    }
}

/*
 * D-037 (docs/parity/DEVIATIONS.md — approved by the user, 2026-09-24): the
 * reference overlaps its two columns between 768px and
 * ~1100px — `.custom_md_6_1`'s 145px side padding does not shrink until
 * 557px, while `.custom_block`'s fixed width (445px default, 359px at
 * <=903px) does not shrink enough to fit the narrower column this band
 * gives it. None of these three rules is present in the reference; together
 * they close that overflow instead of reproducing it:
 *   - `.custom_md_6_1`'s padding reduced to 20px (below), shrinking the
 *     column's own side inset;
 *   - `.login_register_area, .custom_block { min-width: 0; }` (below),
 *     the flexbox fix so the column can shrink past its content's
 *     intrinsic width;
 *   - `.custom_block { width: 100% !important; }` (below), overriding its
 *     own fixed 445px/359px width so it fits the narrower column instead
 *     of forcing it wide.
 */
@media (max-width: 1156px) and (min-width: 768px) {
    .custom_md_6_1 {
        padding: 0px 20px;
    }

    /*
     * `#swkid_plugin .swkid-wrapper`'s `width: 113% !important;` (the
     * plugin's own box, overridden further down) forces its ancestor flex
     * chain (`.login_register_area`, a flex column with no `min-width`) to
     * grow past its own container instead of shrinking to fit — flexbox's
     * default `min-width: auto` on a flex item. `min-width: 0` here is the
     * standard fix, letting the column (and `.custom_block` inside it)
     * shrink to the space this band actually has, which is what stops the
     * overflow into the teal column.
     */
    .login_register_area,
    .custom_block {
        min-width: 0;
    }

    .custom_block {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .images_Section > div {
        border: 1px solid #fff;
        border-radius: 100px;
        height: 65px;
        width: 65px;
        margin: -15px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 50px;
    }

    .custom_block {
        box-shadow: 1px 2px 8px -2px #888888;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 400px;
        border: 2px solid #c0c0c0;
        padding: 20px;
    }

    .adjustRR {
        text-align: center !important;
    }
}

/* all mobile devices start area */
@media (max-width: 557px) {
    .adjustRR {
        text-align: center !important;
    }

    .pClass1 {
        display: flex;
        flex-direction: column;
    }

    .pClass1 > span {
        font-size: 20px;
    }

    .mbClass {
        margin-top: 5px !important;
    }

    .top_logo > img {
        padding-right: 0px !important;
        padding-left: 10px;
    }

    .section_about_sarawak > .d-flex {
        width: 95%;
        margin: 20px auto;
    }

    .fixed_top_bar_announcement > .d-flex {
        flex-direction: column;
    }

    .desc_area {
        color: #fff;
        padding-left: 20px;
        padding-right: 20px;
    }

    .desc_area > p {
        margin-top: 15px;
    }

    .top_logo {
        padding: 0px 60px !important;
        border-right: 0px !important;
        border-bottom: 1px solid #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .custom_md_6_1 {
        padding: 0px 35px;
    }

    .bottom_wala_text {
        width: 100%;
    }

    .a_b_1 {
        font-size: 12px;
        padding: 5.8px 20px;
    }

    .write_area_1 > p {
        font-size: 11px;
        color: #707070;
    }

    .adjust_bottom_image {
        display: none;
    }

    .set-bg-color {
        height: 320px !important;
    }

    .container-fluid > .row {
        height: auto;
    }

    .logo_below_text > span {
        font-size: 15px;
    }

    .login_register_area {
        padding-top: 25px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .section_logos {
        padding-top: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding-bottom: 0px;
    }

    .terms_conditions {
        text-align: center !important;
    }

    .logos > .img2 {
        width: 75px !important;
    }

    .logos > .img1 {
        width: 90px !important;
    }

    .bottom_bar_section {
        flex: 0 0 auto;
        width: 100%;
        background-color: #3f8d8a;
        border-top-right-radius: 60px;
        border-top-left-radius: 60px;
        -webkit-box-shadow: 0px -4px 3px rgb(50 50 50 / 25%);
        -moz-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.25);
        box-shadow: 0px -5px 3px rgb(50 50 50 / 25%);
        display: none;
    }

    .logo_below_text {
        margin-top: 10px;
        text-align: center;
    }

    .logo_below_text > h3 {
        font-size: 30px;
        font-weight: 400;
        margin-bottom: 0px;
    }

    .logos > .img2 {
        width: 70px;
    }

    .write_area_1 {
        padding-left: 14px;
        text-align: initial;
    }

    .login_register_area > div > h3 {
        font-size: 17px;
    }

    .login_register_area > div > small {
        color: #9b9595;
        font-size: 12px;
    }

    .a_b_2 > span {
        border-left: 1px solid;
        padding: 3px 13px !important;
    }

    .a_b_2 {
        background: #FECC05;
        border: 0px;
        width: 100%;
        padding: 7px 1px;
        font-size: 12px;
    }

    .logos > .img1 {
        width: 90px;
        padding: 20px 10px;
    }

    .custom_block {
        box-shadow: 1px 2px 8px -2px #888888;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border: 2px solid #c0c0c0;
        padding: 20px 15px;
    }

    .login_register_area {
        padding-top: 25px;
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .custom_md_6_1 {
        border-top-right-radius: 31px;
        border-top-left-radius: 31px;
        position: relative;
        top: -26px;
        background: #fff;
    }
}

@media (max-width: 377px) {
    .a_b_1 {
        padding: 5.8px 20px !important;
    }

    .custom_md_6_1 {
        padding: 0px 15px;
    }

    .login_register_block {
        padding: 20px 8px;
    }

    .a_b_2 {
        background: #FECC05;
        border: 0px;
        width: 100%;
        font-size: 12px;
    }

    .custom_block {
        padding: 20px 9px;
    }
}

/* The SarawakID plugin's own wrapper — our one override of its box, same as
   the reference's second inline <style> block. */
#swkid_plugin .swkid-wrapper {
    background: #FECC05;
    border-radius: 5px;
    width: 113% !important;
    font-size: 15px !important;
}

.fixed_top_bar_announcement {
    background: #5E5E5E;
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 20px;
    padding-top: 0px;
}

.desc_area {
    color: #fff;
    padding-left: 20px;
    width: 100%;
    padding-top: 35px;
}

.top_logo > img {
    padding-right: 15px;
    width: 75px;
    margin-right: 13px;
}

.top_logo {
    padding: 30px 0px;
    border-right: 1px solid #fff;
}

/*
 * The rules below replace reference `style="..."` attributes with classes
 * (see templates/landing.html's header comment) — same literal values, none of
 * them variable.
 */

.beta_emphasis {
    text-decoration: underline;
    cursor: pointer;
}

.close_announcement {
    margin-bottom: 0px;
    margin-top: 15px;
    text-align: end;
    color: #7fc6b4;
    cursor: pointer;
}

.logos > .img1,
.logos > .img2 {
    width: 106px;
}

.sarawaknet_row {
    margin-top: 15px;
    margin-left: 30px;
}

.section_about_sarawak .image_Area > img.about_icon {
    width: 50px;
}

.write_area_1 > p {
    margin: 0px;
}

.sarawak_gov_heading {
    color: #707070;
    font-size: 14px;
}

.terms_bar {
    margin-top: 0px;
    background: #3f8d8a;
    color: #fff;
    text-align: end;
}

.terms_conditions {
    font-weight: 500;
    color: #fff;
}
