html, body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    background-image: url("/Images/backgroundLogin.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    margin: 0; 
    padding: 0; 
}

.main-form {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    min-width: 800px;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    align-items: stretch; 
}

.back-long {
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #031A3A 100%);
    overflow-y: auto;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.container {
    position: relative;
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    top: 0px;
    min-height: calc(100vh - 80px); 
    max-height: calc(100vh - 80px); 
}

.logo-container {
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-top: 150px; 
}

.masterName {
    font-size: 15px; 
    font-family: 'Montserrat', sans-serif; 
    color: white;
}

.login-form {
    background-color: #fff;
    padding: 30px;
    min-height: 500px;
    width: 400px;
    margin: 0 0px;
    min-width: 400px;
    max-height: 600px;
    border-top-left-radius: 10px; /* Округление верхнего левого угла */
    border-bottom-left-radius: 10px; /* Округление нижнего левого угла */
}

.login-box {
    /*width: 100%;*/
    background-color: #f0f2f5;
    padding: 30px;
    min-height: 500px;
    width: 400px;
    max-height: 600px;
    margin: 0 0px;
    min-width: 400px;
    border-top-right-radius: 10px; 
    border-bottom-right-radius: 10px; 
}

.login-form img {
    width: 100px;
    height: 270px;
    margin: 35px auto;
    display: flex;
    z-index: 1;
    position: relative;
}

.info_logo img {
    width: 200px; 
    height: 200px; 
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px auto;
    font-family: 'Montserrat', sans-serif;
}

.login-form .dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.login-form .dots div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9d9d9;
    margin: 0 5px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #d9d9d9;
    border-radius: 50px;
    display: inline-block;
    margin: 5px;
    border: none;
    cursor: pointer;
}
    .dot:focus {
        border: none;
        outline: none;
    }
    .dot.active {
        background-color: white;
        border: none;
    }

.login-box img {
    width: 50px;
    height: 50px;
    margin: 20px auto;
    display: flex;
    z-index: 1;
    position: relative; 
    color: #2e85ff;
}

h1 {
    text-align: center;
    font-size: 2rem; 
}

.login-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.login-box-content-footer {
    margin-top: 20px;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.form-group_login, .form-group_pass {
    position: relative;
    margin-bottom: 35px;
}

.form-group_login, .form-group_pass input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.login-box button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit-btn {
    position: relative;
    padding: 10px 20px; 
}

#submit-btn span.spinner {
    position: absolute;
    right: 120px;
    top: 10px;
    transform: translateY(-50%);
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

button:hover {
    background-color: #0069d9;
}

.master_name {
    color: white;
}

.master_versions {
    color: white;
}

.master_logo_blue img {
    color: #2e85ff;
}

.form-group_login input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-image: url("/Images/login_profile.svg");
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: 6px center;
}

.form-group_pass input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-image: url("/Images/password_profile.svg");
    background-size: 25px 20px;
    background-repeat: no-repeat;
    background-position: 6px center;
    z-index: 2;
}

.footer {
    position: absolute;
    bottom: 40px;
    top: 800px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer a {
    text-decoration: none;
    color: #FFFFFF;
}

.lang-select-container {
    position: relative;
    display: inline-block;
}

.select-selected:hover {
    color: #ccc;
}

.select-wrapper {
    display: flex;
    align-items: center;
}

.lang-flag {
    width: 40px;
    height: 30px;
    margin-right: 0px;
    margin-left: 15px;
    border: none;
}

.custom-select {
    position: relative;
    display: inline-block;
    background-color: transparent;
    border: none;
}

.select-selected {
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: white;
    margin: -15px auto;
    font-size: 20px;
}

.select-items {
    display: none;
    position: absolute;
    background-color: #fff; 
    border-radius: 5px;
    z-index: 99;
    width: 100%;
    bottom: calc(100% + 10px); 
    top: auto;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: black; 
}

.select-items div {
    padding: 10px;
    cursor: pointer;
    background-color: transparent;
}

.select-items div:hover {
    background-color: #ddd;
}

.info_text p {
    text-align: center;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.select-hide {
    display: none;
    /*opacity: 10;*/
}

/*.select-selected:hover + .select-items {
    display: block;
}*/

.select-items:hover {
    display: block;
    opacity: 1;
}

.show-password {
    background-color: transparent;
    display: flex;
    border: none;
    position: absolute;
    width: 0px;
    left: 310px;
    right: 0px;
    top: -3px;
    outline: none;
    box-shadow: none;
    border-color: transparent;
    justify-content: center; 
    align-items: center; 
}

.show-password i {
    font-size: 18px;
    color: #2e85ff;
}
.show-password:focus {
    outline: none; 
    box-shadow: none; 
}

.fa-eye-slash {
    font-size: 18px;
    color: #2e85ff;
    border: none;
    border-color: transparent;
}

.show-password:hover {
    opacity: 0.8; 
    border: none;
    border-color: transparent;
}

input:-webkit-autofill + .show-password {
    display: none;
}

.input-error {
    border: 1px solid red;
    background-color: #ffe6e6;
}

.footer a:hover {
    color: #ccc; 
}

.external-logins {
    margin-top: 20px;
    width: 100%
}

.external-logins .card {
    width: 100%;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.external-logins .card-header {
    background-color: #f0f2f5;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.external-logins .card-body {
    padding: 20px;
}

.card-body {
    height: 80px;
}

.external-logins .btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-openid {
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

.btn-openid:hover {
    background-color: #0056b3; 
}

input::-ms-clear {
    display: none; 
}

input {
    -moz-appearance: textfield; 
}

.validation-summary {
    min-height: 50px; 
    visibility: hidden; 
    text-align: center; 
    list-style-type: none;
    padding-left: 0; 
    margin: 0; 
    display: block;
}

.validation-summary.visible {
    visibility: visible; 
}

.back-long, .container, .main-form, .login-container {
    list-style: none; 
}

.validation-summary::before {
    content: ""; 
    display: none; 
}
.back-long div {
    list-style-type: none; 
}

.validation-summary::marker {
    content: none;
}

ul, ol {
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

#confirmNo {
    padding: 10px;
    border: none;
    box-shadow: inset 0 0 0 2px #8d8d8d;
    color: #636363;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    #confirmNo:hover {
        background-color: #f0f2f5;
    }

#confirmYes {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    #confirmYes:hover {
        background-color: #0069d9;
    }

.content-scrollable {
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal-btn {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.15s linear;
}

    .custom-modal-backdrop.show {
        display: block;
        opacity: 1;
    }

.modal-backdrop {
    display: none !important;
}
