* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: sans-serif;
}

body {
    padding: 17vh 0;
    height: 100%;
    background-color: #fff;
    background-image: url("../image/Intersect.svg");
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000 !important;
    background-color: transparent !important;
}

input:focus {
    outline: none;
}

#mainbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 0;
    gap: 24px;
    margin: 0 auto;
}

#user-panel {
    width: 400px;
    border-radius: 30px;
    background: rgb(238, 238, 239);
    padding: 40px 50px;
    border:3px solid #0b5dd1;
}

#logo img {
    width: 268px;
    height: 76px;
}

#login-frame {
    display: flex;
    flex-direction: column;
    width: 582px;
    padding: 60px 78px;
    gap: 40px;
    border-radius: 24px;
    background-color: #0F68AA;
}

#error-message {
    height: 22px;
    display: block;
    text-align: center;
}

#login-error, #password-error {
    height: 20px;
    width: 100%;
    color: #F45353;
    font-size: 16px;
}

#lgn-right-box, #pwd-right-box {
    height: 22px;
    width: 22px;
}

.hidden {
    display: none;
}

.wrapout {
    text-align: center;
}

.wrapout span {
    font-size: 27px;
    font-weight: 500;
}



.action-menu {
    display: inline-flex;
    width: 100%;
    justify-content: space-around;
}

.menu-btn {
    width: 40%;
    height: 45px;
    border: none;
    background: #0b5dd1;
    border-radius: 18px;
    cursor: pointer;
    font-size: 17px;
    color: white;
    margin-top: 30px;
    font-weight: 400;
}

.menu-btn:hover{
    background: #16a0ef;
    color: white;
    transition: 0.5s;
}

.logo-and-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-and-caption p {
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
}

.logo-and-caption img {
    display: block;
    width: 360px;
    height: 87px;
}

.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-text-icon {
    text-align: center;
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
}

.login-text-icon i {
    color: #fff;
}

.bi.bi-question-circle {
    cursor: pointer;
}

.bi.bi-question-circle:hover {
    cursor: pointer;
}

.input-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    font-size: 22px;
}

.login-input, .password-input {
    display: flex;
    flex-direction: row;
    height: 50px;
    border: 1px solid #6FA4CC;
    border-radius: 8px;
    background-color: #D1E3F0;
    padding: 12px 16px;
}

.login-input input, .password-input input {
    width: 100%;
    padding: 0;
    border-radius: 0px;
    font-size: 22px;
}

.bi-eye, .bi-eye-slash {
    cursor: pointer;
    color: #6FA4CC;
}

.bi-exclamation-circle {
    color: #F45353;
}

.bi-check-lg {
    color: #262626;
}

.input-box input::placeholder {
    color: #6FA4CC;
}

.input-box button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 44px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.5s;
}

.input-box button:hover {
    background-color: #2196f3;
    color: #fff;
    transition: 0.5s;
}

.input-box button:hover .spinner-in {
    background-color: #2196f3;
}

.spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1e1e1e;
    background: conic-gradient(from 0deg, #fff, #999);
    padding: 2px;
    animation: rotate 1s linear infinite;
}

.spinner-in {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.5s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: absolute;
    margin-left: 60px;
    transform: translate(0,-83%);
}

.modal-content {
    position: relative;
    text-align: center;
    background-color: #fff;
    max-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    border: 1px solid black;
    border-radius: 5px;
    padding: 10px;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

.modaltit {
    display: inline-block;
    text-align: center;
    margin-bottom: 6px;
    font-size: 19px;
    width: 100%;;
}

/* > адаптивность */

@media (min-width: 375px) and (max-width: 460px) {
    input, textarea, select {
        font-size: 19px;
        -webkit-text-size-adjust: none;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #000 !important;
        background-color: transparent !important;
        font-size: 19px !important;
        font-family: inherit !important;
        line-height: normal !important;
        border: none !important;
    }

    body {
        font-size: 19px;
        padding: 84px 16px 170px 16px;
    }

    #mainbox {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding: 0;
        gap: 24px;
        margin: 0 auto;
    }

    #login-frame {
        max-width: 355px;
        padding: 60px 18px;
    }

    #logo img {
        width: 216px;
        height: 62px;
    }

    #login-error, #password-error {
        font-size: 14px;
    }

    .logo-and-caption {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .logo-and-caption p {
        color: #fff;
        font-family: sans-serif;
        font-size: 14px;
        /* line-height: 32px; */
    }

    .logo-and-caption img {
        display: block;
        width: 214px;
        height: 52px;
        order: -1;
    }

    .login-input, .password-input {
        height: 42px;
        border-radius: 8px;
        background-color: #D1E3F0;
        padding: 8px 14px;
        font-size: 19px;
    }

    .login-input input, .password-input input {
        font-size: 19px;
    }

    .input-box input::placeholder {
        color: #6FA4CC;
        font-size: 19px;
    }

    .modal {
        margin-left: 0px;
        transform: translate(0,-100%);
    }
}


@media (min-width: 461px) and (max-width: 600px) {

    input, textarea, select {
        font-size: 19px;
        -webkit-text-size-adjust: none;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #000 !important;
        background-color: transparent !important;
        font-size: 19px !important;
        font-family: inherit !important;
        line-height: normal !important;
        border: none !important;
    }

    body {
        font-size: 19px;
        padding: 84px 16px 170px 16px;
    }

    #mainbox {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding: 0;
        gap: 24px;
        margin: 0 auto;
    }

    #login-frame {
        max-width: 400px;
        padding: 80px 32px;
    }

    #logo img {
        width: 216px;
        height: 62px;
    }

    #login-error, #password-error {
        font-size: 14px;
    }

    .logo-and-caption {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .logo-and-caption p {
        color: #fff;
        font-family: sans-serif;
        font-size: 14px;
        /* line-height: 32px; */
    }

    .logo-and-caption img {
        display: block;
        width: 214px;
        height: 52px;
        order: -1;
    }

    .login-input, .password-input {
        height: 42px;
        border-radius: 8px;
        background-color: #D1E3F0;
        padding: 8px 24px;
        font-size: 19px;
    }

    .login-input input, .password-input input {
        font-size: 19px;
    }

    .input-box input::placeholder {
        color: #6FA4CC;
        font-size: 19px;
    }

    .modal {
        margin-left: 0px;
        transform: translate(0,-100%);
    }

}

/* < */