html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
}

body {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    overflow-x: hidden;
    overflow-y: hidden;
    touch-action: manipulation;
    font-family: Georgia, "Times New Roman", serif;
    background-color: #070302;
    background-image: url("../../images/background.png");
    background-position: center top;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.login-container {
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 0 16px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

@media (max-width: 420px) {
    body {
        background-size: cover;
    }
}

.login-panel {
    width: min(331px, calc(100vw - 32px));
    height: 100vh;
    height: 100svh;
    box-sizing: border-box;
    padding: clamp(42px, 7vh, 54px) clamp(30px, 10.88%, 36px) 0;
    background: transparent url("../../images/panel%20bg.png") center top / 100% 100% no-repeat;
    text-align: center;
}

.login-logo {
    display: block;
    width: min(270px, 100%);
    height: auto;
    margin: 0 auto clamp(44px, 8vh, 70px);
    transform: scale(1.15);
    transform-origin: center center;
}

#loginForm {
    width: 100%;
    margin: 0 auto;
}

#loginForm input {
    width: 100%;
    height: 41px;
    box-sizing: border-box;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid #5b3118;
    border-radius: 2px;
    background: rgba(5, 5, 5, 0.88);
    color: #f3e1cf;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
}

#loginForm input::placeholder {
    color: #9f7557;
}

#loginForm input:focus {
    border-color: #c96425;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.95), 0 0 10px rgba(207, 79, 22, 0.45);
}

.login-btn {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 1px solid #8d4d22;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(42, 30, 21, 0.95), rgba(10, 9, 8, 0.98));
    color: #f5d4b8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 0 1px #160804 inset, 0 0 14px rgba(196, 62, 12, 0.28);
}

.login-btn:hover {
    border-color: #df7a31;
    color: #fff2e6;
    box-shadow: 0 0 0 1px #160804 inset, 0 0 20px rgba(230, 82, 18, 0.48);
}

.swal2-popup.minimal-alert {
    border: 1px solid rgba(218, 91, 25, 0.45);
    border-radius: 2px !important;
    box-shadow: 0 0 18px rgba(218, 68, 12, 0.22);
}

@media (max-height: 820px) {
    .login-panel {
        width: min(318px, calc(100vw - 24px));
        height: 100vh;
        height: 100svh;
        padding-top: clamp(34px, 5.8vh, 46px);
    }

    .login-logo {
        width: min(236px, 86%);
        margin-bottom: clamp(30px, 6vh, 46px);
        transform: scale(1.04);
    }

    #loginForm input {
        height: 36px;
        margin-bottom: 9px;
        font-size: 13px;
    }

    .login-btn {
        height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .login-panel {
        width: min(300px, calc(100vw - 24px));
        height: 100vh;
        height: 100svh;
        padding-left: 30px;
        padding-right: 30px;
    }

    .login-logo {
        width: 84%;
        margin-bottom: 44px;
        transform: scale(1.03);
    }
}
