/* =================================================================
   Components — UI component styles only.
   All colors reference tokens from tokens.css.
   ================================================================= */
h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    color: var(--headline-color);
    margin: 0px;
}

h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    color: var(--headline-color);
    margin: 0px;
}

h3 {
    font-size: 26px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    color: var(--headline-color);
    margin: 0px;
}

label, span {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    color: var(--headline-color);
    cursor: inherit
}

a {
    text-decoration: none;
}

fieldset {
    border: 1px solid var(--border-primary, #D5D9DD);
    border-radius: var(--border-radius-md, 8px);
    padding-top: 13px;
}

legend {
    font-size: 14px;
}

#version {
    font-size: 12px;
    color: transparent;
    padding: 4px 8px;
    margin-left: 8px;
    align-self: center;
}

#version::selection {
    color: var(--headline-color);
    -webkit-text-fill-color: var(--headline-color);
    background-color: var(--surface-hover);
}

ul {
    list-style-type: none;
    padding-inline-start: 0px;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

    ul.password-criteria {
        display: flex;
        flex-flow: row wrap;
    }

@media (max-width: 547px) {
    ul.password-criteria {
        flex-flow: column;
    }

    .password-criteria {
        flex-flow: column;
    }
}

ul.password-criteria li {
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
    color: var(--text-muted);
    padding-left: 10px;
    flex: calc(50% - 30px);
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

    ul.password-criteria li:before {
        content: "\2022";
        font-size: 32px;
        position: relative;
        top: 6px;
        left: -8px;
        display: inline-block;
        width: 24px;
        height: 24px;
    }

    ul.password-criteria li.filled:before {
        content: "";
        position: relative;
        background-image: url(/assets/icons/icon_v_blue.png);
        background-repeat: no-repeat;
        width: 20px;
        height: 20px;
        top: 10px;
    }

    ul.password-criteria li.filled {
        color: var(--main-color);
    }

li.numbers {
    padding-left: 4px;
    content: "";
    color: var(--headline-color);
}

    li.numbers:before {
        content: "";
    }

.centered-text {
    display: inline-flex;
    align-self: center;
    text-align: center;
}

/* Validation */
.validation-error {
    display: none;
    transition: all 0.3s ease-in-out;
}

    .validation-error span {
        color: var(--alert) !important;
        font-size: 14px;
    }

    .validation-error.warning {
        color: var(--alert) !important;
        font-size: 14px;
    }

.center {
    top: 15px !important;
}

.error {
    display: block;
    color: var(--alert);
    font-size: 14px;
}

.loginPswrd.invalid .validation-error,
.loginUserNameDiv.invalid .validation-error,
.changePhone.invalid .validation-error,
.input.invalid .validation-error {
    display: block;
    color: var(--alert);
    font-size: 16px;
    text-align: center;
}

.input-error-msg {
    font-size: 14px !important;
    padding-left: 10px;
    text-align: start !important;
}

.input-error {
    border: 2px solid var(--alert) !important;
    background: var(--light-alert) !important;
}

/* Checkbox */
.crb-checkbox {
    display: block;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .crb-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 24px;
    width: 24px;
    border: solid 2px transparent;
    border-radius: 6px;
    background-color: var(--surface);
    overflow: hidden;
    z-index: 1;
}

.crb-checkbox:focus-within .checkmark,
.crb-checkbox:hover input ~ .checkmark {
    border: solid 2px var(--btn-fg-disabled);
}

.crb-checkbox:hover input ~ .checkmark {
    background-color: var(--surface-hover);
}

.crb-checkbox input:not(:checked) ~ .checkmark {
    border: solid 2px var(--btn-fg-disabled);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.crb-checkbox input:checked ~ .checkmark:after {
    background-image: url(/assets/icons/icon_checkmark.png);
    background-color: var(--main-color);
    border-radius: 4px;
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    z-index: 2;
    overflow: hidden;
}

.crb-checkbox:hover input:checked ~ .checkmark:after {
    background-color: var(--main-color);
}

.crb-checkbox .checkmark:after {
    border-width: 0 3px 3px 0;
}

/* Stepper and Progress Bar */
.stepper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 16px;
    margin-bottom: 0px;
    gap: 16px;
    align-self: center;
    width: -webkit-fill-available;
    max-width: 400px;
}

    .stepper .title {
        color: var(--headline-color);
        font-size: 14px;
        font-weight: 600;
    }

.crb-progress-bar {
    height: 6px;
    border-radius: 3px;
    background-color: var(--light-gray-bg);
    position: relative;
    flex-grow: 1;
    max-width: 338px;
}

    .crb-progress-bar > div {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 0px;
        height: 6px;
        border-radius: 3px;
        background-color: var(--main-color);
        width: var(--prc);
    }

    .crb-progress-bar.prc-80 > div { width: 80%; }
    .crb-progress-bar.prc-60 > div { width: 60%; }
    .crb-progress-bar.prc-40 > div { width: 40%; }
    .crb-progress-bar.prc-20 > div { width: 20%; }
    .crb-progress-bar.prc-100 > div { width: 100%; }

.delimeter {
    display: block;
    width: 2px;
    background-color: var(--light-text);
}

/* Buttons */
a.link-btn, button.link-btn {
    background-color: transparent;
    border: none;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    padding-inline: 0px;
    position: relative;
    display: inline-flex;
    max-width: var(--form-max-width);
}

    a.link-btn.arrow-left:before, button.link-btn.arrow-left:before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 18px;
        position: relative;
        top: 0px;
        left: -3px;
        background-image: url(/assets/icons/icon_arrow_right.png);
        background-repeat: no-repeat;
    }

button.btn, a.btn {
    font-family: var(--font-semibold);
    max-width: var(--form-max-width);
    height: 56px;
    border: none;
    text-align: center;
    font-size: 16px;
    line-height: 140%;
    font-weight: 600;
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    border-radius: var(--border-radius-lg);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

    button.btn.sm {
        font-size: 14px;
        height: 40px;
    }

    button.btn:hover, a.btn:hover {
        box-shadow: var(--shadow-md);
    }

    button.btn.btn-primary[disabled], button.btn.btn-primary.disabled,
    a.btn.btn-primary[disabled], a.btn.btn-primary.disabled {
        background-color: var(--btn-bg-disabled);
        color: var(--btn-fg-disabled);
        cursor: not-allowed;
    }

    button.btn[disabled]:hover, button.btn.disabled:hover,
    a.btn[disabled]:hover, a.btn.disabled:hover {
        box-shadow: none;
    }

    button.btn-secondary, button.btn.btn-secondary,
    a.btn-secondary, a.btn.btn-secondary {
        background-color: var(--btn-secondary-bg);
        color: var(--btn-secondary-fg);
    }

    button.btn-outline-secondary, button.btn.btn-outline-secondary,
    a.btn-outline-secondary, a.btn.btn-outline-secondary {
        background-color: var(--surface-hover);
        border: 1px solid var(--btn-secondary-bg);
    }

html[data-theme="dark"] button.btn-outline-secondary,
html[data-theme="dark"] button.btn.btn-outline-secondary,
html[data-theme="dark"] a.btn-outline-secondary,
html[data-theme="dark"] a.btn.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--border-primary);
    color: var(--btn-secondary-fg);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) button.btn-outline-secondary,
    :root:not([data-theme="light"]) button.btn.btn-outline-secondary,
    :root:not([data-theme="light"]) a.btn-outline-secondary,
    :root:not([data-theme="light"]) a.btn.btn-outline-secondary {
        background-color: transparent;
        border: 1px solid var(--border-primary);
        color: var(--btn-secondary-fg);
    }
}

.btn-card {
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

    .btn-card:hover {
        background-color: var(--surface-secondary);
        box-shadow: var(--shadow-md);
    }

    .btn-card svg {
        display: flex;
        align-self: center;
    }

button.button-header {
    width: fit-content;
    font-weight: 600;
    font-family: var(--font-primary);
    height: 40px;
    align-self: center;
    font-size: 14px;
}

/* OTC (One-Time Code) */
.otc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

    .otc .sms-autofill-hint {
        display: none;
        padding: 8px 16px 8px 6px;
        background-color: var(--surface-hover);
        border-radius: 8px;
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 400;
        text-align: center;
        margin-bottom: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .otc .sms-autofill-hint:hover {
            background-color: var(--surface-hover);
        }

    .otc .digits {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

        .otc .digits .digits-set {
            display: flex;
            flex-direction: row;
            gap: 8px
        }

    .otc input::-webkit-outer-spin-button,
    .otc input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otc input[type="number"]:nth-child(n + 4) {
        order: 2;
    }

    .otc input[type=number] {
        line-height: 1;
        padding: 8px 0 4px;
        font-size: 16px;
        text-align: center;
        appearance: textfield;
        -webkit-appearance: textfield;
        height: 56px;
        width: 56px;
        background: var(--background-primary);
        border: solid 1px var(--light-gray-bg);
        border-radius: var(--border-radius-lg);
        font-weight: 400;
        font-family: var(--font-primary);
        color: var(--headline-color);
        box-sizing: border-box;
    }

        .otc input[type=number]:not(:placeholder-shown) {
            outline: none;
            border: solid 2px var(--secondary-color);
            background-color: var(--bright-light-gray)
        }

    .otc.invalid input[type=number] {
        outline: none;
        border: solid 2px var(--alert);
        background-color: var(--light-alert)
    }

    .otc.invalid .validation-error {
        display: block;
        color: var(--alert);
        font-size: 16px;
        font-family: var(--font-primary);
        text-align: center;
    }

    .otc.invalid .trouble-logging-in {
        display: flex
    }

    .otc.invalid .trouble-logging-in-btn {
        color: var(--secondary-link-color);
        font-family: var(--font-primary);
        font-size: 14px;
        font-weight: 400;
        text-decoration: underline
    }

/* Form Controls */
.show-hide-password {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background-image: url(/assets/icons/icon_password_eye.png);
}

/* Hide the browser's native password reveal button (Edge/Chrome/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
}

.form-control:focus ~ .show-hide-password {
    background-image: url(/assets/icons/icon_password_eye_focus.png);
}

.form-control:not(:focus):valid ~ .show-hide-password,
input:not(:placeholder-shown) ~ .show-hide-password {
    cursor: pointer;
    background-image: url(/assets/icons/icon_password_eye_active.png);
}

.form-group {
    position: relative;
    width: 100%;
    max-width: var(--form-max-width);
}

.float-label {
    position: absolute;
    left: 12px;
    top: 17px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.2s ease all;
    font-size: 14px;
    font-weight: 400;
}

.required .float-label::after {
    content: "*";
    color: var(--alert);
}

.form-control:focus ~ .float-label,
.form-control:not(:focus):valid ~ .float-label,
input:not(:placeholder-shown) ~ .float-label {
    left: 12px;
    top: 8px;
    font-size: 14px;
    font-weight: normal;
    color: var(--headline-color);
    opacity: 1;
    z-index: 1;
    background-color: transparent;
}

/* User Menu Dropdown */
#user-menu :hover {
    cursor: pointer;
    opacity: 0.7;
}

.user-menu-dropdown {
    display: none;
    flex-direction: column;
    width: 193px;
    align-items: flex-start;
    position: absolute;
    background-color: var(--background);
    border-radius: var(--border-radius-lg);
    top: 53px;
    right: 60px;
    box-shadow: var(--shadow-dropdown);
    overflow: hidden;
}

    .user-menu-dropdown .option {
        display: flex;
        height: 48px;
        align-items: center;
        gap: 8px;
        padding-left: 8px;
        color: var(--text);
        width: 100%;
    }

        .user-menu-dropdown .option:hover {
            background-color: var(--surface-secondary);
        }

.menu-dropdown-arrow-down {
    cursor: pointer;
    background-image: url(/assets/icons/icon_arrow_down.png);
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
}

.user-menu-dropdown-arrow-up {
    cursor: pointer;
    background-image: url(/assets/icons/icon_arrow_up.png);
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
}

/* Footer */
footer {
    padding: 0px 48px;
}

.border-bottom {
    border-bottom: var(--light-gray-border);
}

.border-top {
    border-top: var(--light-gray-border);
}

.text-14 {
    font-size: 14px;
}

.text-13 {
    font-size: 13px;
}

/* Button backgrounds */
.button-bg {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .button-bg.primary {
        background-color: var(--btn-bg);
        color: var(--btn-fg);
    }

        .button-bg.primary i, .button-bg.primary span {
            color: var(--btn-fg);
            align-self: baseline;
        }

.copy-btn-bg, .paste-btn-bg {
    background-color: var(--surface-secondary);
    cursor: pointer
}

    .copy-btn-bg:hover, .paste-btn-bg:hover {
        box-shadow: var(--shadow-md);
    }

.paste-btn {
    display: flex;
    gap: 10px;
}

.primary-color-bg {
    background-color: var(--primary);
}

.copy-icon {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: background-image 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
    background-image: url(/assets/icons/icon_not_copied.png);
}

.copied-icon {
    background-image: url(/assets/icons/icon_copied.png);
    width: 24px;
    height: 24px;
}

.paste-icon {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: background-image 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
    background-image: url(/assets/icons/icon);
}

/* Info & Recovery */
.info-container {
    padding: 16px;
    border-radius: var(--border-radius-lg);
    background: var(--info-bg);
    max-width: 515px;
}

.recovery-codes-container {
    border-radius: var(--border-radius-lg);
    background-color: var(--surface-secondary);
    align-items: flex-end;
    height: 50px;
    display: flex;
}

.list-div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.codes-div {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-height: 50px;
    overflow-y: auto;
    font-size: 14px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    list-style: numbers;
    counter-reset: item;
    font-size: 14px;
    font-weight: 600;
}

/* Notifications */
.notification-label {
    width: 300px;
    top: 60px;
    right: 25px;
    padding: 16px;
    border-radius: 8px;
    opacity: 0.95;
    display: flex;
    flex-direction: column;
    position: fixed;
    box-shadow: var(--shadow-notification);
    text-align: start;
    background-color: var(--success-bg);
    color: var(--headline-color);
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

    .notification-label div:first-of-type {
        font-weight: 600;
        font-family: var(--font-primary);
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
    }

    .notification-label.success {
        padding-left: 45px
    }

        .notification-label.success:after {
            content: "";
            position: absolute;
            background-image: url(/assets/icons/icon_circle_check.png);
            background-repeat: no-repeat;
            display: block;
            left: 16px;
            top: 18px;
            width: 24px;
            height: 24px;
            z-index: 1;
        }

    .notification-label .close {
        position: absolute;
        background-image: url(/assets/icons/close.png);
        background-repeat: no-repeat;
        display: block;
        right: 16px;
        top: 18px;
        width: 24px;
        height: 24px;
        z-index: 1;
        cursor: pointer
    }

@keyframes slideInFromRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

@keyframes slideOutToRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

/* Consent */
.consent .container {
    max-width: 656px;
}

.consent-text {
    background-color: var(--bright-light-gray);
    max-height: 365px;
    overflow: auto;
    padding: 24px 8px 24px 24px;
    border-radius: var(--border-radius-lg);
    color: var(--headline-color);
    box-sizing: border-box;
}

    .consent-text label {
        font-weight: 600
    }

    .consent-text p {
        margin-block-start: 0px;
    }

/* KBD / Secret Key */
.kbd-container {
    display: none;
    transition: all 0.3s ease-in-out;
    padding: 4px 12px;
    background-color: var(--bright-light-gray);
    border-radius: var(--border-radius-lg)
}

    .kbd-container.show {
        display: flex;
        justify-content: space-between;
        gap: 16px
    }

kbd {
    font-size: 15px;
    font-weight: 600;
    align-self: center;
    font-family: var(--font-semibold);
    font-weight: 600;
    white-space: nowrap;
}

.code-verification {
    margin-left: -20px;
}

.btn-show-hide-code {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

    .btn-show-hide-code w:last-of-type { display: none }
    .btn-show-hide-code w:first-of-type { display: inline }
    .btn-show-hide-code.hide-code w:last-of-type { display: inline }
    .btn-show-hide-code.hide-code w:first-of-type { display: none }
    .btn-show-hide-code span { display: inline }
    .btn-show-hide-code.hide-code span { display: none }

/* Alert icon */
.alert-icon {
    width: 100px;
    height: 100px;
    background-image: url(/assets/icons/icon_alert.png);
    display: flex;
    justify-content: center;
    align-self: center;
}

/* Line heights */
.line-height-24 {
    line-height: 24px;
}

.line-height-150 {
    line-height: 150%;
}

/* Codes */
.codes-lists ol {
    list-style-type: decimal;
}

.mfa-auth ol {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.m-block-end {
    margin-block-end: 0px;
    font-size: 14px;
    list-style-type: disc;
    padding-left: 56px;
}

    .m-block-end span {
        font-size: 14px;
    }

/* Logo */
.logo {
    padding-top: 13px;
}

.logo-dark {
    padding-top: 13px;
    display: none;
}

html[data-theme="dark"] .logo-light {
    display: none;
}

html[data-theme="dark"] .logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light {
        display: none;
    }

    :root:not([data-theme="light"]) .logo-dark {
        display: block;
    }
}

/* QR Code */
#qrCode {
    border: solid 5px white;
    height: 170px;
}

    #qrCode img {
        width: 170px;
        height: 170px;
    }

/* JWT Decoder */
.jwt-decoder-page {
    min-width: 600px;
    max-width: 75%;
}

/* Disabled state */
.disabled {
    color: var(--text-muted);
}

    .disabled:hover {
        cursor: not-allowed;
    }

/* Media queries for component layout */
.forgot-password-container .w-460 {
    width: 460px;
    max-width: 100%;
}

@media (max-width: 1265px) {
    .forgot-password,
    .login-page,
    .container {
        padding-top: 16px;
    }
}

    @media (max-width: 900px) {
        .responsive-flex-layout {
            flex-direction: column;
            align-items: center;
        }
        .left-side {
            max-width: 400px;
            width: -webkit-fill-available;

            .link-btn {
                margin-left: unset;
            }
        }
    }

@media(min-width:100px) and (max-width: 300px) {
    .container {
        width: 200px;
    }
}

/* Environment chip */
.env-chip {
    display: flex;
    height: 24px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    background-color: var(--env-chip-bg);
    align-self: center;
    box-sizing: border-box;
    color: var(--env-chip-text);
    min-width: 83px;
}

.env-chip-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 150%;
}

.bar-with-chip {
    background: var(--env-chip-bar-bg);
}

.bar {
    border-bottom: var(--light-gray-border);
    margin: 0px 48px;
    padding: 8px 12px;
}

.sticky {
    position: sticky;
    top: 0px;
}

.hr-line {
    border-bottom: 2px solid var(--hr-color);
    height: 2px;
    width: -webkit-fill-available;
    padding-top: 8px;
}
.hr-line-light {
    border-bottom: 2px solid #eae4f0;
    height: 2px;
    width: -webkit-fill-available;
    padding-top: 8px;
}

/* Trouble / Modal */
.trouble-logging-in {
    display: none
}

.trouble-modal {
    display: none;
    margin: unset;
    padding: unset;
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transition: display 0.3s ease-in-out
}

.overlay {
    margin: unset;
    padding: unset;
    position: fixed;
    z-index: 101;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: var(--surface-overlay);
}

.modal {
    position: fixed;
    z-index: 102;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 748px;
    min-width: 375px;
    background-color: var(--surface);
    padding: 20px 24px;
    box-sizing: border-box;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 160%;
}

    .modal h3 {
        font-size: 16px;
        font-weight: 600
    }

    .modal .btn-secondary {
        height: 40px;
    }

    .modal .x-close svg {
        border: none;
        border-radius: var(--border-radius-lg);
        padding: 5px;
        cursor: pointer;
        transition: box-shadow 0.3s ease-in-out;
    }

    .modal .x-close {
        display: flex;
        flex-direction: row;
        justify-content: flex-end
    }

        .modal .x-close svg:hover {
            box-shadow: var(--shadow-md);
        }

    .modal ul {
        list-style-type: disc;
        padding-left: 28px;
    }

.logout-modal {
    display: none;
    margin: unset;
    padding: unset;
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transition: display 0.3s ease-in-out
}

    .logout-modal .modal {
        width: 500px;
        min-width: 375px;
        padding: 16px;
        align-items: flex-start;
    }

.modal .content {
    align-self: stretch;
}

.modal .headline {
    color: var(--headline-color);
    font-family: var(--font-semibold);
    font-size: 20px;
    text-align: center;
    height: 28px;
}

.modal .line {
    height: 24px;
}

.modal .text-wrapper {
    margin-top: 0px;
    color: var(--headline-color);
    font-family: var(--font-primary);
    font-size: 14px;
    text-align: center;
}

.logout-modal form {
    display: contents;
}

.buttons {
    height: 40px;
}

.modal .button-secondary, .modal .button-primary {
    border: none;
    border-radius: var(--border-radius-md);
    flex: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0px;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
}

.modal .button-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--headline-color);
}

.button-secondary:hover {
    opacity: 0.7;
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    opacity: 0.8;
    box-shadow: var(--shadow-md);
}

.modal .button-primary {
    background-color: var(--btn-danger-bg);
    color: var(--btn-danger-fg);
}

.button-secondary .text-wrapper, .button-primary .text-wrapper {
    font-family: var(--font-primary);
    font-weight: 600;
}

.button-secondary .text-wrapper {
    color: var(--headline-color);
}

.button-primary .text-wrapper {
    color: var(--btn-danger-fg);
}

#codes-download-msg {
    color: var(--text-muted);
}

/* SSO */
.sso-prompt-bg {
    background-image: url(/assets/sso_prompt_bg.png);
    background-position: center center;
    background-repeat: no-repeat;
}

/* Boolet */
.boolet {
    border-radius: 8px;
    flex-direction: column;
    position: relative;
    text-align: start;
    color: var(--headline-color);
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    padding-left: 40px;
}

    .boolet.success:after {
        content: '';
        position: absolute;
        background-image: url(/assets/icons/icon_circle_check.png);
        background-repeat: no-repeat;
        display: block;
        top: -3px;
        left: 8px;
        width: 24px;
        height: 24px;
        z-index: 1;
    }

.w-140 {
    width: 140px !important
}

/* ========== Home Page Greeting ========== */
.home-greeting {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 0 0 8px 0;
}

.home-greeting-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--avatar-bg);
}

.home-greeting-avatar svg {
    width: 72px;
    height: 72px;
}

.home-greeting-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-greeting-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--headline-color);
    margin: 0;
    text-align: left;
    font-family: InterSemiBold;
    word-break: break-all;
}

.home-greeting-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========== Application Tiles ========== */
.app-tiles-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.app-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.app-tiles-grid .app-tile {
    width: 260px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 32px 24px 24px;
    border-radius: 16px;
    border: 1px solid var(--tile-border);
    background: var(--surface);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.app-tile:hover {
    box-shadow: var(--shadow-tile);
    border-color: var(--tile-border-hover);
}

.app-tile .app-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    min-height: 72px;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 16px;
    margin-bottom: 20px;
}

.app-tile .app-tile-icon svg {
    display: block;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.app-tile-icon-blue { background-color: var(--tile-icon-blue-bg); }
.app-tile-icon-green { background-color: var(--tile-icon-green-bg); }
.app-tile-icon-purple { background-color: var(--tile-icon-purple-bg); }
.app-tile-icon-orange { background-color: var(--tile-icon-orange-bg); }
.app-tile-icon-teal { background-color: var(--tile-icon-teal-bg); }
.app-tile-icon-red { background-color: var(--tile-icon-red-bg); }
.app-tile-icon-gray { background-color: var(--tile-icon-gray-bg); }

.app-tile .app-tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.app-tile .app-tile-name {
    font-size: 16px;
    font-weight: 600;
    font-family: InterSemiBold;
    color: var(--headline-color);
    line-height: 1.3;
}

.app-tile .app-tile-description {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-tile .app-tile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--tile-border);
    width: 100%;
    justify-content: center;
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    font-family: InterSemiBold;

    span {
        color: var(--main-color);
    }
}

.app-tile.app-tile-hidden {
    display: none;
}

.app-tile.app-tile-show-more {
    border-style: dashed;
    border-color: var(--tile-border);
}

.app-tile.app-tile-show-more:hover {
    border-color: var(--main-color);
    background: var(--tile-show-more-hover-bg);
}

@media (max-width: 768px) {
    .home-greeting {
        flex-direction: column;
        text-align: center;
    }

    .home-greeting-title {
        font-size: 24px;
        text-align: center;
    }

    .home-greeting-subtitle {
        text-align: center;
    }

    .app-tiles-grid .app-tile {
        width: 100%;
    }
}

/* ========== Home Page ========== */
#home-page .container {
    width: 100%;
    align-self: center;
}

/* Dark mode icon overrides */
html[data-theme="dark"] .menu-dropdown-arrow-down {
    background-image: url(/assets/icons/dark-mode/icon_arrow_down.png);
}

html[data-theme="dark"] .user-menu-dropdown-arrow-up {
    background-image: url(/assets/icons/dark-mode/icon_arrow_up.png);
}

html[data-theme="dark"] .copy-icon {
    background-image: url(/assets/icons/dark-mode/icon_not_copied.png);
}

html[data-theme="dark"] .notification-label .close {
    background-image: url(/assets/icons/dark-mode/close.png);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .menu-dropdown-arrow-down {
        background-image: url(/assets/icons/dark-mode/icon_arrow_down.png);
    }

    :root:not([data-theme="light"]) .user-menu-dropdown-arrow-up {
        background-image: url(/assets/icons/dark-mode/icon_arrow_up.png);
    }

    :root:not([data-theme="light"]) .copy-icon {
        background-image: url(/assets/icons/dark-mode/icon_not_copied.png);
    }

    :root:not([data-theme="light"]) .notification-label .close {
        background-image: url(/assets/icons/dark-mode/close.png);
    }
}

