@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    .body {
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .login-box {
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
}

@supports (-ms-grid-row-align: center) {
    .login-box__register {
        -ms-grid-row-align: center;
    }
}

body {
    background-size: cover;
    font-family: 'Roboto', sans-serif;
}

.login-box_form {
    display: none;
    position: relative;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 0;
    margin-bottom: 8%;
}
.login-box__wrapper {
    flex-direction: column;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100vh;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.login-box__wrapper__register {
    position: relative;
    margin-bottom: 20px;
}

.login-box__wrapper__register a {
    color: #f3ae53;
}
.login-box__wrapper__register p {
    color: #464646;
    font-weight: bold;
    font-size: 15px;
}


.login-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    background: linear-gradient(90deg, #781b8c 0%, #cb1a8d 100%);
    border: none;
    width: 400px;
    height: 350px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 10px;
    color: white;
}
.login-box::after{
    background: inherit;
    bottom: -20px;
    content: "";
    display: block;
    height: 85%;
    left: 0px;
    position: absolute;
    right: 0px;
    transform: skewY(-10.5deg);
    transform-origin: 100% center;
    z-index: -1;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 25px;
}

.login-box__title {
    margin-bottom: 10px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1.5px;
}
.login-box__title__input{
    position: relative;
    margin-top: 30px;
    font-size: 15px;
    margin-bottom: 5px;
}

.login-box__input {
    height: 50px;
    position: relative;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

}

.login-box__input input {
    width: 100%;
    height: 80%;
    background: #a64389;
    border: none;
    outline: none;
    border-radius: 10px;
    padding-left: 10px;
    color: white;
}
.podsanu-gesamilod {
    position: absolute;
    top: 15px;
    right: 6px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(https://zornet.ru/ZORNET-RU/ZR/Alinuversa/amipsakilad/dsareqab.svg) 0 0 no-repeat;
}
.podsanu-gesamilod.view {
    background: url(https://zornet.ru/ZORNET-RU/ZR/Alinuversa/amipsakilad/loxanetased.svg) 0 0 no-repeat;
}
.login-box__input svg {
    width: 25px;
}

.login-box__input input::placeholder {
    opacity: 0;
}

.login-box__input label {
    display: block;
    position: absolute;
    margin-left: 5px;
    top: 50%;
    left: 5px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    pointer-events: none;
    color: #c86dad;
    font-size: 15px;
}


.login-box__input input:not(:placeholder-shown)~label,
.login-box__input input:focus~label {
    display: none;
}

.login-box__remember {
    display: flex;
}

.login-box__remember .container {
    display: block;
    position: relative;
    margin-top: 25px;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
    color: #c86dad;
    font-size: 15px;
}

.login-box__remember .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.login-box__remember .checkmark {
    border: 1px solid #9f5aa9;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgb(122 27 137);
}

.login-box__remember .container:hover input ~ .checkmark {
    background-color: rgba(238, 238, 238, .42);
}

.login-box__remember .container input:checked ~ .checkmark {
    background-color: rgb(122 27 137);
}

.login-box__remember .container  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.login-box__remember .container input:checked ~ .checkmark:after {
    display: block;
}

.login-box__remember .container .checkmark:after {
    bottom: 3px;
    left: 5px;
    width: 8px;
    height: 15px;
    border: solid #f5e9f4;
    border-radius: 4px;
    border-width: 0 4px 4px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.login-box__remember input {
    margin: 0 10px 0 0;
}

.login-box__remember a {

    margin-left: auto;
}

.login-box__remember p {
    display: inline;
}

.login-box__remember a {
    margin-top: 25px;
    color: #0d6efd;
    font-size: 15px;
}

.login-box__button {
    transform: translateX(220px);
    width: 120px;
    height: 45px;
    background: rgb(139, 0, 240);
    color: rgb(255, 255, 255);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    margin-top: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: rgba(139, 0, 240, 0.25) 2px 10px 10px 0px;
}

.login-box__button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.login-box__register {
    -ms-flex-item-align: center;
    align-self: center;
}

.error-message {
    padding: 10px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin-bottom: 15px;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Добавляем стили для индикатора загрузки */
.loader {
    display: none;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}