:root {
    --primary-text-color: #333333;
    --primary-btn-text-color: #fff;
    --border-color: #ccc;
    --error-color: #DC143C;
    --link-color: #0b528f;
    --registeration-link-color: #ccd5e1;
    --background-recovery-code-color: #f8f9fa;
    --two-factor-alert-warning-background-color: #fff3cd;
    --two-factor-alert-warning-color: #856404;
    --two-factor-alert-warning-border-color: #ffeeba;
    --two-factor-alert-danger-background-color: #f8d7da;
    --two-factor-alert-danger-color: #842029;
    --two-factor-alert-danger-border-color: #f5c2c7;
    --two-factor-alert-success-background-color: #d1e7dd;
    --two-factor-alert-success-color: #0f5132;
    --two-factor-alert-success-border-color: #badbcc;
}

[data-customer-id="calrom"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#3d5c75, #3d5c75);
    --primary-btn-bg-color--hover: linear-gradient(#254259, #254259);
    --background-image: linear-gradient(180deg, #d7dfe5, #b4c9da 80%);
    --background-image-fallback: linear-gradient(180deg, #d7dfe5, #b4c9da 80%);
    --branding-logo: url('../img/cm/logo.png');
    --link-color: #3d5c75;
}

[data-customer-id="grpaaa"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#0076cf, #0068b7);
    --primary-btn-bg-color--hover: linear-gradient(#0068b6, #0077d1);
    --background-image: url('../img/aa/bg.jpg');
    --background-image-fallback: linear-gradient(to bottom, rgb(6, 58, 104) 0%, rgb(197, 213, 240) 100%);
    --branding-logo: url('../img/aa/logo.png');
    --link-color: #0b528f;
}

[data-customer-id="grpqau"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#db1111, #d10f0f);
    --primary-btn-bg-color--hover: linear-gradient(#d10f0f, #d11e29);
    --background-image: url('../img/qf/bg.jpg');
    --background-image-fallback: linear-gradient(#6E96CC, #EAF0F0);
    --branding-logo: url('../img/qf/logo.png');
    --link-color: #d10f0f;
}

[data-customer-id="grpaay"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#22225c, #22225c);
    --primary-btn-bg-color--hover: linear-gradient(#3c4480, #3c4480);
    --background-image: url('../img/ay/bg.jpg');
    --background-image-fallback: none;
    --branding-logo: url('../img/ay/logo.png');
    --link-color: #22225c;
}

[data-customer-id="grpaba"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#2e5c99, #2e5c99);
    --primary-btn-bg-color--hover: linear-gradient(#2e5c99, #2e5c99);
    --background-image: url('../img/ba/bg.jpg');
    --background-image-fallback: none;
    --link-color: #2e5c99;
    background-size: 100% 125% !important;
}

[data-customer-id="groups"] {
    --primary-text-color: #333333;
    --border-color: #ccc;
    --error-color: #DC143C;
    --primary-btn-text-color: #fff;
    --primary-btn-bg-color: linear-gradient(#2e5c99, #2e5c99);
    --primary-btn-bg-color--hover: linear-gradient(#2e5c99, #2e5c99);
    --background-image: url('../img/ba/bg.jpg');
    --background-image-fallback: none;
    --branding-logo: url('../img/ba/ba-icon.png');
    --link-color: #2e5c99;
    background-size: 100% 125% !important;
}

body {
    color: var(--primary-text-color);
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    margin: 0;
    background-image: var(--background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.branding {
    background-image: var(--branding-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 394px;
    height: 87px;
    margin: 50px 0px;
}

.branding__image {
    width: 100%;
}

h1 {
    font-weight: 500;
}

.field-validation-error {
    color: var(--error-color);
}

.validation-summary-errors {
    color: var(--error-color);
    margin: 10px 0px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors li {
        display: inline-block;
    }

.link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

    .link:visited {
        text-decoration: none;
    }

.reg {
    position: absolute;
    top: 25px;
    right: 57px;
    color: var(--registeration-link-color);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

    .reg:hover {
        text-decoration: underline;
    }

.box {
    width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff;
}

.multicolumn {
    display: flex;
    flex-direction: row;
}

.multicolumn-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0px;
}

.multicolumn-inversecolumn {
    justify-content: flex-end;
}

.notice__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 45px;
}

.notice__text {
    margin-top: 0px;
    padding: 10px 45px;
}

.manage__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 45px;
}

.manage__text {
    margin-top: 0px;
    padding: 10px 45px;
}

.manage__label {
    margin-top: 0px;
    padding: 10px 45px;
    font-weight: bold;
}

.manage__action {
    margin-bottom: 15px;
    margin-top: 0px;
    padding: 10px 45px;
    text-align: end;
}

.manage__message {
    padding: 0px 45px 10px;
}

.login-form__aad-link {
    text-align: right;
    margin: 10px 0;
    background: url('../img/aad.svg') no-repeat left center;
    display: inline-flex;
    align-items: center;
    padding-left: 23px;
}

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

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

.stacked-form {
    padding: 10px 45px;
}

.stacked-form__message {
    padding: 0px 0px 10px;
}

.stacked-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.stacked-form__control-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.stacked-form__input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    min-height: 22px;
}

.stacked-form__checkbox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.stacked-form__checkbox-input {
    margin-right: 5px;
}

.stacked-form__checkbox-label {
    margin-bottom: 0;
}

.stacked-form__radio-group {
    margin: 5px 0px;
}

.stacked-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.stacked-form__actions--distributed {
    justify-content: space-between;
    padding: 5px 0;
    align-items: center;
}

.stacked-form__actions--landing-page {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.identity-provider {
    display: flex;
    align-items: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin-bottom: 10px; /* Adding some space between buttons */
    text-decoration: none;
    color: inherit;
    padding: 10px 0px;
}

.identity-provider__logo {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border-radius: 50%;
}

.identity-provider__logo--aa {
    background: url('/img/aa/login-provider.png') center center / cover no-repeat;
}

.identity-provider__logo--cm {
    background: url('/img/aad.svg') center center / cover no-repeat;
}

.identity-provider__name {
    font-weight: bold;
    font-size: 16px;
}

.primary-btn {
    background-image: var(--primary-btn-bg-color);
    border-color: var(--primary-btn-bg-color);
    color: var(--primary-btn-text-color);
    border: 0;
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 18px;
    width: 200px;
}

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

@media screen and (max-width: 600px) {
    body {
        background-image: var(--background-image-fallback);
    }

    .primary-btn {
        width: 100%;
    }

    .box {
        width: 100%;
        border: 0;
    }

    .multicolumn {
        flex-direction: column;
    }

    .stacked-form {
        padding: 15px;
    }

    .notice__header {
        padding: 15px;
    }

    .notice__text {
        padding: 15px;
    }

    .stacked-form__header {
        flex-direction: column;
    }

    .stacked-form__actions {
        flex-direction: column;
        margin-bottom: 0px;
    }

    .stacked-form__action {
        margin: 10px;
    }
}

    .microsoft-signin-button {
        position: relative;
        display: inline-flex;
        align-items: center;
        border: 1px solid #0078D4;
        padding: 8px 16px;
        color: #0078D4;
        font-weight: bold;
        border-radius: 4px;
        text-decoration: none;
        margin-bottom: 20px;
        margin-top: 15px;
        width: 95%;
        justify-content: center;
    }

        .microsoft-signin-button img {
            position: absolute;
            height: 20px;
            width: 20px;
            margin-right: 8px;
            left: 10px;
        }

.two-factor-btn {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--link-color);
    border: 2px solid var(--link-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.twofa-link-text {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--link-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.twofa-stacked-form-link-text {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--link-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.alternate-link {
    margin-top: 20px;
}

.twofa-stacked-form__actions {
    margin-top: 20px;
    display: flex;
    margin-bottom: 15px;
    flex-flow: column wrap;
    align-items: center;
}

.twofa-stacked-form-action-btn {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--link-color);
    border: 2px solid var(--link-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .two-factor-btn,
    .twofa-stacked-form-action-btn:hover {
        background: var(--link-color);
        color: white;
    }

.recovery-codes-container {
    text-align: center;
}

.recovery-code {
    display: inline-block;
    min-width: 120px;
    font-size: 1.1em;
    text-align: center;
    padding: 8px;
    margin: 5px;
    background-color: var(--background-recovery-code-color);
}

/* General alert styling */
.two-factor-alert {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Warning alert styling */
.two-factor-alert-warning {
    background-color: var(--two-factor-alert-warning-background-color);
    color: var(--two-factor-alert-warning-color);
    border-color: var(--two-factor-alert-warning-border-color);
}

/* Danger alert styling */
.two-factor-alert-danger {
    background-color: var(--two-factor-alert-danger-background-color);
    color: var(--two-factor-alert-danger-color);
    border-color: var(--two-factor-alert-danger-border-color);
}

.two-factor-alert-success {
    background-color: var(--two-factor-alert-success-background-color);
    color: var(--two-factor-alert-success-color);
    border-color: var(--two-factor-alert-success-border-color);
}

/* Checkbox to toggle popup */
.popup-checkbox {
    display: none;
}

/* Popup container */
.popup-container {
    position: relative;
}

/* Error popup styling */
.error-message-popup {
    width: 530px;
    display: flex;
    background-color: var(--two-factor-alert-warning-background-color);
    color: var(--two-factor-alert-warning-color);
    border-color: var(--two-factor-alert-warning-border-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
}

/* Close button styling */
.close-button-message-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--two-factor-alert-warning-color);
    font-weight: bold;
    cursor: pointer;
}

/* Hide the popup when the checkbox is checked */
.popup-checkbox:checked ~ .error-message-popup {
    display: none;
}

.warning-box-buttons {
    display: inline-flex;
    justify-content: flex-end;
}

.pr-0 {
    padding-right: 0px !important;
}

.skip-button {
    background-image: var(--primary-btn-bg-color);
    border-color: var(--primary-btn-bg-color);
    color: var(--primary-btn-text-color);
    border: 0;
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 18px;
    width: 150px;
    text-align: center;
    margin-left: 5px;
    text-decoration: none;
    cursor: default;
}

/* Style for the balloon message container */
.balloon-message {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure space between the icon, text, and close button */
    padding: 12px 20px; /* Padding for the message */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for a floating effect */
    font-size: 16px;
    max-width: 400px;
    margin: 20px 0; /* Space around the message */
    position: relative;
    font-family: Arial, sans-serif; /* Match the system font */
    overflow: hidden; /* Hide overflow when the close button is clicked */
}

    /* Warning message styling */
    .balloon-message.warning {
        background-color: #fff3cd; /* Light yellow background for warning */
        color: #856404; /* Dark yellow text */
        border: 2px solid #ffeeba; /* Light yellow border */
    }

    /* Error message styling */
    .balloon-message.error {
        background-color: #f8d7da; /* Light red background for error */
        color: #721c24; /* Dark red text */
        border: 2px solid #f5c6cb; /* Light red border */
    }

    /* Style for the icon */
    .balloon-message .icon {
        font-size: 24px; /* Icon size */
        margin-right: 15px; /* Space between icon and message */
    }

/* Style for the close button (X) */
.close-btn {
    font-size: 24px; /* Size of the close button */
    cursor: pointer; /* Make it clickable */
    color: #333; /* Dark color for the button */
    transition: color 0.3s ease; /* Smooth color change */
}

    /* Close button hover effect */
    .close-btn:hover {
        color: #999; /* Lighter color when hovered */
    }

/* Optional: Add a small "tail" to the balloon message */
.balloon-message::before {
    content: '';
    position: absolute;
    bottom: -12px; /* Position the tail just below the box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px;
    border-style: solid;
    border-color: transparent transparent #ccc transparent; /* Tail color */
}

/* Optional: Add hover effect for more interactivity */
.balloon-message:hover {
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly bigger shadow on hover */
}