:root {
    --exam-shell: #252a32;
    --exam-shell-deep: #1d2128;
    --exam-paper: #ffffff;
    --exam-ink: #172033;
    --exam-muted: #667085;
    --exam-line: #e4e7ec;
    --exam-primary: #397fc4;
    --exam-primary-dark: #2869aa;
    --exam-primary-soft: #eef6ff;
}

body.exam-login-page {
    min-height: 100vh;
    background: var(--exam-shell);
}

body.exam-login-page.exam-active {
    background: var(--exam-paper) !important;
    overflow: hidden !important;
}

body.exam-login-page.exam-active .hk-wrapper,
body.exam-login-page.exam-active .hk-pg-wrapper {
    background: transparent !important;
}

body.exam-login-page.exam-active .hk-navbar {
    right: auto;
    left: 50%;
    width: min(1180px, calc(100vw - 32px));
    min-height: 62px;
    padding: 0 20px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 0 0 12px 12px;
    background: var(--exam-primary) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

body.exam-login-page.exam-active .hk-navbar .navbar-brand img {
    height: 42px;
    width: auto;
}

body.exam-login-page.exam-active .hk-pg-wrapper.hk-auth-wrapper {
    min-height: 100vh;
    padding: 62px 16px 0;
}

body.exam-login-page.exam-active #displaycontent.exam-login-surface {
    width: min(1180px, calc(100vw - 32px));
    max-width: none;
    min-height: calc(100vh - 62px);
    margin: 0 auto;
    padding: 24px 14px 40px;
    border-radius: 0;
    background: #f4f6f7;
    box-shadow: none;
}

body.exam-login-page.exam-active #contentJawapan {
    margin: 0;
}

body.exam-login-page.exam-active .exam-paper-workspace {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.exam-login-page.exam-active .exam-paper-workspace > .row,
body.exam-login-page.exam-active .exam-workspace-grid {
    margin-right: -7px;
    margin-left: -7px;
}

body.exam-login-page.exam-active .exam-workspace {
    margin-top: 0 !important;
    padding-right: 7px;
    padding-left: 7px;
}

body.exam-login-page.exam-active .exam-summary-card {
    margin-bottom: 14px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--exam-paper);
    color: var(--exam-ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

body.exam-login-page.exam-active .exam-summary-card td {
    padding: 10px 14px;
    border-color: var(--exam-line) !important;
    color: var(--exam-ink);
}

body.exam-login-page.exam-active .exam-summary-card tr:first-child td {
    height: 44px;
    font-size: 14px !important;
    font-weight: 800;
}

body.exam-login-page.exam-active .exam-summary-card tr:last-child td:nth-child(odd) {
    width: 35%;
    color: var(--exam-muted);
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

body.exam-login-page.exam-active .exam-summary-card tr:last-child td:nth-child(even) {
    width: 15%;
    color: var(--exam-ink);
    font-size: 15px !important;
    font-weight: 800;
    text-align: center;
}

body.exam-login-page.exam-active .exam-status-panel,
body.exam-login-page.exam-active .exam-countdown-panel,
body.exam-login-page.exam-active .exam-question-column,
body.exam-login-page.exam-active .exam-overview-card {
    padding-right: 7px;
    padding-left: 7px;
}

body.exam-login-page.exam-active .exam-card-surface,
body.exam-login-page.exam-active .exam-overview-card {
    border: 1px solid rgba(228, 231, 236, .9);
    border-radius: 12px;
    background: var(--exam-paper);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

body.exam-login-page.exam-active .exam-card-surface {
    min-height: 100%;
    padding: 10px 12px;
}

body.exam-login-page.exam-active .exam-status-panel,
body.exam-login-page.exam-active .exam-countdown-panel {
    margin-bottom: 14px;
}

body.exam-login-page.exam-active .exam-status-panel .badge {
    color: #344054 !important;
    white-space: normal;
}

body.exam-login-page.exam-active .exam-status-panel .exam-card-surface > .row {
    min-height: 44px;
    align-items: center;
}

body.exam-login-page.exam-active .exam-status-panel .exam-card-surface > .row > [class*="col-"] {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.exam-login-page.exam-active .exam-status-panel .btn-circle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border-width: 2px;
}

body.exam-login-page.exam-active .exam-status-label {
    padding: 0;
    background: transparent !important;
    color: #344054 !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

body.exam-login-page.exam-active .exam-countdown-panel .table {
    margin: 0;
}

body.exam-login-page.exam-active .exam-countdown-panel td {
    padding: 5px 3px;
    border-color: var(--exam-line);
    color: var(--exam-ink);
    font-size: 10px;
    font-weight: 700;
}

body.exam-login-page.exam-active .exam-workspace-grid > hr {
    display: none;
}

body.exam-login-page.exam-active .exam-question-column > .card {
    overflow: hidden;
    border: 1px solid rgba(228, 231, 236, .9) !important;
    border-radius: 12px;
    background: var(--exam-paper);
    color: var(--exam-ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

body.exam-login-page.exam-active .exam-question-column {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    overflow-y: auto;
}

body.exam-login-page.exam-active .exam-question-column > .card:not(.d-none) {
    width: 100%;
    min-height: 100%;
    margin-bottom: 0 !important;
    flex: 1 1 auto;
}

body.exam-login-page.exam-active .exam-question-column > .card .card-body {
    padding: 24px;
}

body.exam-login-page.exam-active .exam-overview-card {
    align-self: stretch;
    padding: 16px;
    color: var(--exam-ink);
    height: calc(100vh - 250px);
    overflow-y: auto;
}

body.exam-login-page.exam-active .exam-overview-card hr {
    border-color: var(--exam-line);
}

body.exam-login-page.exam-active .exam-overview-card p {
    margin: 0 0 7px;
    color: var(--exam-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

body.exam-login-page.exam-active .exam-overview-card video,
body.exam-login-page.exam-active .exam-overview-card #my_camera {
    width: 100% !important;
    max-width: 100%;
    overflow: hidden;
    border-radius: 9px;
}

body.exam-login-page.exam-active .btn-circle {
    box-shadow: none;
}

body.exam-login-page:not(.exam-active) .hk-wrapper,
body.exam-login-page:not(.exam-active) .hk-pg-wrapper {
    background: transparent;
}

body.exam-login-page:not(.exam-active) .hk-navbar {
    min-height: 58px;
    padding-right: max(24px, calc((100vw - 940px) / 2 + 22px));
    padding-left: max(24px, calc((100vw - 940px) / 2 + 22px));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: var(--exam-shell-deep) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

body.exam-login-page:not(.exam-active) .hk-navbar .navbar-brand img {
    height: 38px;
    width: auto;
}

body.exam-login-page:not(.exam-active) .hk-pg-wrapper.hk-auth-wrapper {
    min-height: 100vh;
    padding: 78px 20px 28px;
}

body.exam-login-page:not(.exam-active) #displaycontent.exam-login-surface {
    width: min(940px, calc(100vw - 40px));
    max-width: none;
    min-height: calc(100vh - 106px);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--exam-paper);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .3);
}

body.exam-login-page:not(.exam-active) #displaycontent > .row {
    margin: 0;
    padding: 0;
}

body.exam-login-page:not(.exam-active) #displaycontent .auth-form-wrap {
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 22px 24px 30px !important;
    align-items: flex-start;
}

body.exam-login-page:not(.exam-active) .exam-login-card {
    width: min(720px, 100%) !important;
    margin: 0 auto;
}

.exam-logo-stage {
    display: flex !important;
    min-height: 66px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

.exam-agency-logo {
    display: block;
    width: auto;
    max-width: 150px !important;
    max-height: 86px;
    object-fit: contain;
}

.exam-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.exam-logo-fallback img {
    display: block;
    width: auto;
    max-width: 112px;
    height: 56px;
    object-fit: contain;
}

.exam-logo-fallback .exam-logo-epenilaian {
    height: 62px;
}

.exam-logo-divider {
    width: 1px;
    height: 48px;
    background: var(--exam-line);
}

.exam-system-label {
    margin-bottom: 6px !important;
    color: var(--exam-muted) !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.exam-login-page:not(.exam-active) #divPenilaian {
    max-width: 680px;
    margin: 0 auto 16px !important;
    color: var(--exam-ink) !important;
    font-size: clamp(22px, 3vw, 30px) !important;
    font-weight: 800;
    line-height: 1.18;
    text-transform: uppercase;
}

body.exam-login-page:not(.exam-active) #login hr {
    margin: 16px 0;
    border-color: var(--exam-line);
}

body.exam-login-page:not(.exam-active) #divArahan {
    max-height: 250px;
    margin-bottom: 0;
    overflow-y: auto;
    color: #344054 !important;
    font-size: 13px;
    line-height: 1.6;
}

body.exam-login-page:not(.exam-active) #divArahan img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

body.exam-login-page:not(.exam-active) .butang_info {
    margin-top: 14px !important;
    padding: 10px 12px !important;
    border: 1px solid #cce3fb;
    border-left: 4px solid var(--exam-primary) !important;
    border-radius: 8px;
    background: var(--exam-primary-soft) !important;
    color: #24527f !important;
    font-size: 12px !important;
}

.exam-time-row {
    margin: 0 -6px;
}

.exam-time-card {
    padding: 0 6px;
}

.exam-time-card > div {
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--exam-line);
    border-radius: 10px;
    background: #f8fafc;
}

.exam-time-label {
    margin-bottom: 5px !important;
    color: var(--exam-muted) !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.exam-time-value {
    margin: 0 !important;
    color: var(--exam-ink) !important;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.35;
}

body.exam-login-page:not(.exam-active) #divForm small {
    display: inline-block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}

body.exam-login-page:not(.exam-active) #divForm .form-control {
    min-height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: var(--exam-ink);
    font-size: 13px;
    box-shadow: none;
}

body.exam-login-page:not(.exam-active) #divForm .form-control:focus {
    border-color: var(--exam-primary);
    box-shadow: 0 0 0 3px rgba(57, 127, 196, .12);
}

body.exam-login-page:not(.exam-active) #login .btn-primary {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--exam-primary);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(57, 127, 196, .2);
}

body.exam-login-page:not(.exam-active) #login .btn-primary:hover,
body.exam-login-page:not(.exam-active) #login .btn-primary:focus {
    background: var(--exam-primary-dark);
}

body.exam-login-page:not(.exam-active) .timer {
    padding-top: 12px !important;
    color: var(--exam-muted);
}

body.exam-login-page:not(.exam-active) .timer h4 {
    margin: 0;
    font-size: 12px !important;
    font-weight: 600;
}

@media (max-width: 767px) {
    body.exam-login-page.exam-active {
        overflow: auto !important;
    }

    body.exam-login-page.exam-active .hk-navbar {
        left: 0;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
        transform: none;
        border-radius: 0;
    }

    body.exam-login-page.exam-active .hk-pg-wrapper.hk-auth-wrapper {
        padding: 62px 0 0;
    }

    body.exam-login-page.exam-active #displaycontent.exam-login-surface {
        width: 100%;
        min-height: calc(100vh - 62px);
        padding: 14px 9px 24px;
    }

    body.exam-login-page.exam-active .exam-question-column {
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 14px;
    }

    body.exam-login-page.exam-active .exam-overview-card {
        height: auto !important;
        overflow: visible !important;
    }

    body.exam-login-page.exam-active .exam-question-column > .card:not(.d-none) {
        min-height: 0;
    }

    body.exam-login-page.exam-active .exam-status-panel .exam-card-surface > .row > [class*="col-"] {
        margin: 4px 0;
    }

    body.exam-login-page:not(.exam-active) {
        background: var(--exam-paper);
    }

    body.exam-login-page:not(.exam-active) .hk-navbar {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.exam-login-page:not(.exam-active) .hk-pg-wrapper.hk-auth-wrapper {
        padding: 66px 0 0;
    }

    body.exam-login-page:not(.exam-active) #displaycontent.exam-login-surface {
        width: 100%;
        min-height: calc(100vh - 66px);
        border-radius: 0;
        box-shadow: none;
    }

    body.exam-login-page:not(.exam-active) #displaycontent .auth-form-wrap {
        padding: 18px 18px 28px !important;
    }

    .exam-time-card + .exam-time-card {
        margin-top: 10px;
    }

    .exam-time-card,
    .exam-time-card h1,
    .exam-time-card .flag_baki_masa {
        text-align: left !important;
    }

    .exam-logo-fallback {
        gap: 12px;
    }

    .exam-logo-fallback img {
        max-width: 96px;
        height: 54px;
    }
}
