html,
body {
    font-family: 'Roboto', sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
}

* {
    font-family: 'Roboto', sans-serif;
    outline: none !important;

}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

.page-header {
    margin: 0;
}

.bg-primary {
    background: #1b84b9;
}

.color-primary {
    color: #1b84b9 !important;
}

.login-body {
    background: url("../img/login_page_bg2.jpg") no-repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 30;
}

.login-body-overlay {
    background-color: rgba(219, 225, 232, 0.82);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Ensures it stays behind the content */
}

.btn-primary {
    background-color: #1b84b9;
    border: none;
}

.btn-default {
    background-color: #fff;
    transition: background-color 0.3s; /* Smooth transition for background color */

}

.btn-default:hover,
.btn-default:focus {
    background: none;
    border-color: #0f5484 !important;
    color: #0f5484 !important;
}

.btn-default:active {
    background: #e1f4fa !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0f5484;
}

.idp-logo {
    background: url("../img/logo.png") no-repeat;
    background-position: left;
    background-size: contain;
}

.bg-dark {
    background: #0f5484;
}

.bg-light {
    background: #e1f4fa;
}

.flat {
    background-image: none;
    box-shadow: none;
}

.text-danger, .has-error {
    color: #de0101;
}

.container-login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    --webkit-transform: translate(-50%, -50%);
    --moz-transform: translate(-50%, -50%);
    padding: 10px;
    margin: 0;
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: block;
}

.login-box {
    position: relative;
    background-color: white;
    width: 100%;
    padding: 40px;
    height: 100%;
    overflow: hidden;
    top: 0;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.login-content {
    position: absolute;
    height: auto;
    max-height: 55%;
    width: 100%;
    left: 0;
    top: 0;
    overflow: auto;
    transform: translate(0, 120px);
    --webkit-transform: translate(0, 120px);
    --moz-transform: translate(0, 120px);
}

.login-idp-logo {
    background: url("../img/logo.png") no-repeat;
    background-position: left;
    background-size: contain;
    height: 25px;
    max-height: 25px;
}

.login-toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0 40px 40px 40px;
}

.row.no-gutter {
    margin-left: -2px;
    margin-right: -2px;
}

.row.no-gutter [class*='col-']:not(:first-child),
.row.no-gutter [class*='col-']:not(:last-child) {
    padding-right: 2px;
    padding-left: 2px;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
    box-shadow: none;
    outline: 0 none;
    border-left: none;
    border-top: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
    border-bottom: 1px solid #1b84b9;
    box-shadow: none;
    outline: 0 none;
}

label {
    color: #333;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to go through to the input */
}

.btn {
    font-weight: 500;
}

.btn-default {
    color: #1b84b9;
}

.btn-default,
.btn-primary {
    box-shadow: none;
}

.top-bar {
    background: white;
    box-shadow: 0 6px 6px rgba(0, 0, 0, .3);
    height: 60px;
    margin-bottom: 40px;
}

.nav-pills > li > a {
    color: #1b84b9;
    font-weight: 500;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover,
.nav-pills > li > a:hover,
.nav-pills > li > a:focus,
.list-group-item:hover,
.list-group-item:focus,
.list-group-item:active {
    border: 1px solid #2397cc !important;
    background: #e1f4fa !important;
    color: #3d3d3d !important;
}

@media (max-width: 767px) {
    .w-100-xs {
        width: 100% !important;
    }
}


/* This overlay will cover the entire page */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Adjust the color and opacity if needed */
    z-index: 1000; /* Ensure it's above all other content */
    display: none; /* Initially hidden */
}

.form-group {
    position: relative;
}


.has-error .form-control {
    border-color: #a94442;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.has-error .form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.bottom-right {
    position: absolute;
    bottom: 0; /* Aligns to the bottom of the parent */
    right: 0; /* Aligns to the right of the parent */
    padding: 40px;
    /* Fallback for older versions of IE */
    width: auto;
    height: auto;
}

.pr-10 {
    padding-right: 10px;
}

.account-link {
    padding-left: 60px;
    padding-right: 60px;
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
}

.account-link:hover {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

.navbar-brand {
    height: 60px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.navbar-nav > li > a {
    line-height: 30px;
}

.navbar-form {
    margin-bottom: 7px;
    margin-top: 7px;
}

.navbar-default .navbar-nav > li > a {
    font-size: 18px;
    color: #1b84b9;
    font-weight: 500;
}

.form-control,
.form-group-lg .form-control {
    padding-left: 0;
    padding-right: 0;
}

.mfa-enroll-desc {
    float: right;
    width: 55%;
}

.mfa-enroll-qrimage {
    float: left;
    text-align: center;
    margin-right: 10px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .w-85-sm {
        width: 85% !important;
    }
}

@media (max-width: 767px) {
    html,
    body {
        height: 100%;
    }

    .container-login {
        position: relative;
        padding: 0;
        margin: 0;
        width: 100%;
        left: 0;
        top: 0;
        transform: none;
        height: calc(100vh - 20px);
    }

    .login-box {
        border-radius: 0;
        box-shadow: none;
    }

    .login-body-overlay {
        display: none;
    }

    .account-link {
        padding-left: 50px;
        padding-right: 40px;
    }

    .mt-xs-10 {
        margin-top: 10px;
    }

    .navbar-brand {
        padding-left: 0;
    }

    .mfa-enroll-desc {
        float: none;
        width: 100%;
        padding-bottom: 60px;
    }

    .mfa-enroll-qrimage {
        float: none;
        position: relative;
        vertical-align: center;
        width: 100%;
        height: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .mfa-enroll-qrimage > div#qrImage {
        margin: 0 auto;
    }

    .login-body {
        background: white;
        opacity: 100%;
    }
    .c-l-mobile{
    height:auto;
    }
}

.msft-icon {
    display: inline-block;
    width: 20px; /* or whatever size you want */
    height: 20px;
    background-image: url('../img/mssymbol.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0; /* optional spacing between icon and text */
    margin-bottom: 2px;
    vertical-align: middle;

}
