:root {
    --bm-primary: #882528;
    --bm-primary-dark: #651a1c;
    --bm-secondary: #f08519;
    --bm-secondary-light: #fff4e8;
    --bm-soft: #fff8f2;
    --bm-border: #eee4dc;
    --bm-text: #252525;
    --bm-muted: #6f7278;
    --bm-white: #ffffff;
}

/* Change password */

.password-modern-page {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 72px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(240, 133, 25, 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff8f2 100%
        );
}

.password-modern-card {
    padding: 36px;
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 28px;
    background: var(--bm-white);
    box-shadow: 0 24px 65px rgba(55, 31, 21, 0.11);
}

.password-modern-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: var(--bm-secondary-light);
    color: var(--bm-secondary);
    font-size: 26px;
}

.password-modern-header {
    margin-bottom: 26px;
}

.password-modern-header > span {
    color: var(--bm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.password-modern-header h1 {
    margin: 10px 0 10px;
    color: var(--bm-primary);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.password-modern-header p {
    margin: 0;
    color: var(--bm-muted);
    line-height: 1.7;
}

.password-modern-alert {
    border: 0;
    border-radius: 14px;
}

.password-modern-field {
    margin-bottom: 18px;
}

.password-modern-field label {
    margin-bottom: 8px;
    color: var(--bm-text);
    font-weight: 600;
}

.password-modern-input-wrap {
    position: relative;
}

.password-modern-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--bm-secondary);
    transform: translateY(-50%);
}

.password-modern-input-wrap .form-control {
    min-height: 52px;
    padding: 12px 48px 12px 44px;
    border: 1px solid #ded7d1;
    border-radius: 14px;
}

.password-modern-input-wrap .form-control:focus {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 4px rgba(136, 37, 40, 0.1);
}

.password-modern-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 3;
    border: 0;
    background: transparent;
    color: var(--bm-muted);
    transform: translateY(-50%);
}

.password-requirements {
    display: grid;
    gap: 9px;
    margin: 4px 0 24px;
    padding: 16px;
    border-radius: 16px;
    background: #faf8f6;
}

.password-requirements > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--bm-muted);
    font-size: 13px;
}

.password-requirements i {
    color: #c9c1ba;
    font-size: 8px;
}

.password-requirements > div.is-valid {
    color: #21844a;
}

.password-requirements > div.is-valid i {
    color: #2aa75b;
    font-size: 13px;
}

.password-modern-submit {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--bm-primary);
    border-radius: 14px;
    background: var(--bm-primary);
    color: var(--bm-white);
    font-weight: 600;
}

.password-modern-submit:hover,
.password-modern-submit:focus {
    border-color: var(--bm-primary-dark);
    background: var(--bm-primary-dark);
    color: var(--bm-white);
}

.password-modern-submit:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.password-modern-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bm-border);
    color: var(--bm-muted);
    font-size: 13px;
}

/* Dashboard */

.portal-modern-heading {
    padding: 42px 0 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(240, 133, 25, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}

.portal-modern-heading-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 24px;
    background: var(--bm-white);
    box-shadow: 0 18px 50px rgba(55, 31, 21, 0.08);
}

.portal-modern-heading-card > div:first-child > span,
.portal-modern-card-header > span,
.portal-modern-status-content > span,
.portal-modern-profile-header > span {
    color: var(--bm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-modern-heading-card h1 {
    margin: 10px 0 8px;
    color: var(--bm-primary);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
}

.portal-modern-heading-card p {
    margin: 0;
    color: var(--bm-muted);
}

.portal-modern-heading-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.portal-modern-code {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--bm-soft);
}

.portal-modern-code small,
.portal-modern-code strong {
    display: block;
}

.portal-modern-code small {
    color: var(--bm-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.portal-modern-code strong {
    margin-top: 3px;
    color: var(--bm-primary);
    letter-spacing: 0.04em;
}

.portal-modern-page {
    padding: 34px 0 76px;
    background: #f8f9fb;
}

.portal-modern-alert {
    border: 0;
    border-radius: 14px;
}

.portal-modern-status-card,
.portal-modern-history-card,
.portal-modern-profile-card,
.portal-modern-help-card,
.portal-modern-action-card {
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 22px;
    background: var(--bm-white);
    box-shadow: 0 16px 44px rgba(55, 31, 21, 0.07);
}

.portal-modern-status-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 26px;
}

.portal-modern-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--bm-secondary-light);
    color: var(--bm-secondary);
    font-size: 24px;
}

.portal-modern-status-content h2 {
    margin: 7px 0 7px;
    color: var(--bm-primary);
    font-size: 30px;
    font-weight: 700;
}

.portal-modern-status-content p {
    margin: 0;
    color: var(--bm-muted);
}

.portal-modern-status-badge {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(136, 37, 40, 0.08);
    color: var(--bm-primary);
    font-size: 11px;
    font-weight: 700;
}

.portal-modern-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.portal-modern-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
}

.portal-modern-action-card .btn {
    grid-column: 1 / -1;
}

.portal-modern-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bm-secondary-light);
    color: var(--bm-secondary);
}

.portal-modern-action-card h3 {
    margin: 0 0 5px;
    color: var(--bm-primary);
    font-size: 18px;
    font-weight: 700;
}

.portal-modern-action-card p {
    margin: 0;
    color: var(--bm-muted);
    font-size: 14px;
    line-height: 1.55;
}

.portal-modern-history-card,
.portal-modern-profile-card,
.portal-modern-help-card {
    padding: 26px;
}

.portal-modern-history-card {
    margin-top: 18px;
}

.portal-modern-card-header h2,
.portal-modern-profile-header h2 {
    margin: 7px 0 6px;
    color: var(--bm-primary);
    font-weight: 700;
}

.portal-modern-card-header p,
.portal-modern-profile-header p {
    margin: 0;
    color: var(--bm-muted);
}

.portal-modern-timeline {
    margin-top: 26px;
}

.portal-modern-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 26px;
}

.portal-modern-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 30px;
    width: 2px;
    height: calc(100% - 4px);
    background: rgba(136, 37, 40, 0.14);
}

.portal-modern-timeline-marker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0ece8;
    color: #9d938a;
    font-size: 12px;
}

.portal-modern-timeline-item.is-current
.portal-modern-timeline-marker {
    background: var(--bm-primary);
    color: var(--bm-white);
}

.portal-modern-timeline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-modern-timeline-heading strong {
    color: var(--bm-text);
}

.portal-modern-timeline-heading small {
    color: #979797;
}

.portal-modern-timeline-content p {
    margin: 5px 0 0;
    color: var(--bm-muted);
}

.portal-modern-empty {
    padding: 20px;
    border-radius: 14px;
    background: #faf8f6;
    color: var(--bm-muted);
    text-align: center;
}

.portal-modern-profile-card {
    text-align: center;
}

.portal-modern-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        var(--bm-primary),
        var(--bm-primary-dark)
    );
    color: var(--bm-white);
    font-size: 30px;
    font-weight: 700;
}

.portal-modern-profile-list {
    margin-top: 24px;
    text-align: left;
}

.portal-modern-profile-list > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--bm-border);
}

.portal-modern-profile-list > div:last-child {
    border-bottom: 0;
}

.portal-modern-profile-list span,
.portal-modern-profile-list strong {
    display: block;
}

.portal-modern-profile-list span {
    color: var(--bm-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.portal-modern-profile-list strong {
    margin-top: 4px;
    color: var(--bm-text);
    overflow-wrap: anywhere;
}

.portal-modern-help-card {
    margin-top: 18px;
    text-align: center;
}

.portal-modern-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 17px;
    background: rgba(37, 211, 102, 0.12);
    color: #25a959;
    font-size: 24px;
}

.portal-modern-help-card h3 {
    color: var(--bm-primary);
    font-weight: 700;
}

.portal-modern-help-card p {
    color: var(--bm-muted);
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .portal-modern-heading-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-modern-heading-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .password-modern-page {
        padding: 42px 0;
    }

    .password-modern-card {
        padding: 24px;
        border-radius: 22px;
    }

    .password-modern-header h1 {
        font-size: 29px;
    }

    .portal-modern-heading {
        padding: 28px 0 18px;
    }

    .portal-modern-heading-card {
        padding: 22px;
    }

    .portal-modern-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-modern-heading-actions .btn {
        width: 100%;
    }

    .portal-modern-status-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px;
    }

    .portal-modern-status-badge {
        grid-column: 1 / -1;
        width: fit-content;
        margin-left: 76px;
    }

    .portal-modern-action-grid {
        grid-template-columns: 1fr;
    }

    .portal-modern-timeline-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .portal-modern-status-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portal-modern-status-icon {
        margin: 0 auto;
    }

    .portal-modern-status-badge {
        margin: 0 auto;
    }
}

/* Candidate action states */

.portal-modern-action-card.is-active {
    border-color: rgba(136, 37, 40, 0.2);
}

.portal-modern-action-card.is-active
.portal-modern-action-icon {
    background: var(--bm-primary);
    color: var(--bm-white);
}

.portal-modern-action-card.is-disabled {
    background: #fbfaf9;
}

.portal-modern-action-card.is-disabled
.portal-modern-action-icon {
    background: #eee9e5;
    color: #9d938a;
}

.portal-modern-action-card.is-disabled h3,
.portal-modern-action-card.is-disabled p {
    opacity: 0.72;
}

/* Portal subpages */

.portal-subpage {
    min-height: 620px;
    padding: 72px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(240, 133, 25, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}

.portal-subpage-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 24px;
    background: var(--bm-white);
    box-shadow: 0 18px 50px rgba(55, 31, 21, 0.08);
}

.portal-subpage-card > span {
    color: var(--bm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-subpage-card h1 {
    margin: 10px 0 8px;
    color: var(--bm-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
}

.portal-subpage-card > p {
    margin: 0;
    color: var(--bm-muted);
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .portal-subpage {
        padding: 42px 0;
    }

    .portal-subpage-card {
        padding: 22px;
        border-radius: 20px;
    }
}