body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('/img/fonetbc.png') no-repeat center center fixed;
    background-size: cover;
}

.login-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px; /* Adjust this value to move the block higher */
}

.login-form {
    background: rgba(255, 255, 255, 0);
    border-radius: 10px;
    text-align: center;
    width: 86%;
}

.image-header {
    margin-bottom: 35px;
}

.image-header img {
    max-width: 100%;
    height: 35px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 17px;
    font-size: 16px;
    display: block;
    background-color: #ff000000;
    color: white;
    margin-bottom: 25px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 5px;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
}

.remember-me input:checked {
    background-color: #1E90FF;
}

.remember-me input:checked::after {
    content: '✔';
    display: block;
    text-align: center;
    color: white;
    font-size: 12px;
}

.forgot {
    text-align: right;
    margin-bottom: 55px;
}

.forgot a {
    color: #1E90FF;
    text-decoration: none;
    font-size: 14px;
}

.forgot a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #1E90FF;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 25px;
    height: 45px;
}

.login-btn:hover {
    background-color: #1C86EE;
}

.register {
    margin-top: 20px;
}

.register a {
    color: #1E90FF;
    text-decoration: none;
    font-size: 14px;
}

.register a:hover {
    text-decoration: underline;
}

label {
    color: white;
}

@media (min-width: 1281px) and (max-width: 3000px) {
    body, html {
        background: url('/img/fone1tbc.png') no-repeat center center fixed;
        background-size: 100% 100%;  /* Make sure the image covers the whole area */
    }
    .login-form {
        background: rgb(78 69 69 / 20%);
        border-radius: 37px;
        padding: 40px;
        text-align: center;
        width: 300px;
    }
    .forgot a {
        color: #ffffff;
    }
    .register a {
        color: #ffffff;
    }
}

@media (min-width: 767px) and (max-width: 1281px) {
    .image-header img {
      height: 44px;
      margin-bottom: 32px;
    }
    .login-form {
      background: rgba(255, 255, 255, 0);
      border-radius: 10px;
      padding: 40px;
      text-align: center;
      width: 70%;
    }
    .input-group input {
      border-radius: 21px;
      font-size: 22px;
      margin-bottom: 39px;
      height: 36px;
    }
    .remember-me {
      font-size: 18px;
    }
    .forgot a {
      font-size: 19px;
    }
    .login-btn {
      font-size: 20px;
      height: 60px;
    }
    .register a {
      font-size: 18px; 
    }
}

.top-right-button {
    position: absolute;
    top: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    background-color: rgb(0 0 0 / 24%);
    padding: 7px;
    border-radius: 22px;
    transition: background-color 0.3s;
}

.top-right-button a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.top-right-button img {
    max-height: 17px;
    margin-right: 7px;
}

.top-right-button span {
    font-size: 13px;
}

.top-right-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.top-right-button {
    position: absolute;
    top: 5%;
    right: 5%;
    align-items: center;
    background-color: rgb(0 0 0 / 24%);
    padding: 7px;
    border-radius: 22px;
    transition: background-color 0.3s;
    z-index: 100;
}

.top-right-button button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;

    color: white;
    cursor: pointer;

    font-family: Arial, sans-serif;
}

.top-right-button img {
    max-height: 17px;
    width: auto;
    margin-right: 7px;
}

.top-right-button span {
    font-size: 13px;
}

.top-right-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


/*
 * ДО 1280px
 * Показываем старую кнопку.
 */
.top-right-button-mobile {
    display: flex;
}

.top-right-button-desktop {
    display: none;
}


/*
 * ОТ 1281px
 * Скрываем старую кнопку
 * и показываем desktop-кнопку.
 */
@media (min-width: 1281px) {

    .top-right-button-mobile {
        display: none;
    }

    .top-right-button-desktop {
        display: flex;
    }
}


/*LOADING SWAL */
.loadLoad {
    animation: 3s linear infinite rotate;
    width: 100px;
}
@keyframes rotate {
    from {
       transform: rotate(0deg);
   }
    to {
       transform: rotate(360deg);
   }
}
.swal-modal {
    background-color: transparent !important;
}

/* ==========================================
   SUBMIT LOADING OVERLAY
   ========================================== */

.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.submit-overlay.active {
    display: flex;
}

.submit-loader {
    width: 52px;
    height: 52px;

    border: 5px solid rgba(128, 128, 128, 0.25);
    border-top-color: #1E90FF;

    border-radius: 50%;

    animation: submitLoaderSpin 0.8s linear infinite;
}

@keyframes submitLoaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}