/* LOGIN PAGES - LineageClassic Style */

/* Video Background - only on login pages */
body.login .login-screen__video,
.wrapper .login-screen__video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ← Меняем cover на contain */
    z-index: 0;
    background: #000; /* Добавляем черный фон, чтобы не было пустых мест */
}
/* Wrapper for login pages - only on login pages */
body.login .wrapper,
.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main container - fixed centered content - only on login pages */
body.login .main,
.wrapper .main {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    gap: 20px;
}

/* Login box - only on login pages */
body.login .main__login-box,
.wrapper .main__login-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    padding: 20px 25px 25px 25px;
    margin-bottom: 20px;
    background-color: #433833e7;
    border-radius: 12px;
    border: 2px solid #B49A88;
    z-index: 2;
    flex-shrink: 0;
}

/* News Box */
.news-box {
    position: relative;
    background-color: #433833e7;
    border-radius: 12px;
    border: 2px solid #B49A88;
    padding: 20px;
    width: 320px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 2;
}

.news-box::-webkit-scrollbar {
    width: 6px;
}

.news-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.news-box::-webkit-scrollbar-thumb {
    background: #B49A88;
    border-radius: 3px;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(180, 154, 136, 0.3);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.news-item-title {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.news-item-date {
    color: #B49A88;
    font-family: "Tahoma", sans-serif;
    font-size: 10px;
    white-space: nowrap;
    margin-left: 10px;
}

.news-item-content {
    color: #ddd;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

.news-box-title {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #B49A88;
    text-align: center;
}

/* Form container */
.main__input {
    width: 100%;
}

/* Inner form layout */
.main__input-inner {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* Labels column */
.main__input-form1 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    color: #fff;
    font-family: "Tahoma", narrow;
    width: 70px;
}

/* Inputs column */
.main__input-form2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    margin-left: 12px;
}

/* Label text */
.main__input-text--1 {
    text-align: right;
    margin-top: 10px;
    color: #fff;
    font-family: "Tahoma", narrow;
    font-size: 11px;
}

.main__input-text {
    display: block;
}

/* Input fields */
body.login .main__input-login,
.wrapper .main__input-login {
    margin-top: 5px;
    border: 1px solid #000;
    height: 20px;
    width: 220px;
    font-size: 11px;
    background: transparent;
    display: block;
    color: #fff;
    font-family: "Tahoma", narrow;
    padding: 3px 5px;
    box-sizing: border-box;
}

body.login .main__input-login::placeholder,
.wrapper .main__input-login::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.login .main__input-login:focus,
.wrapper .main__input-login:focus {
    border: 1px solid #000;
    outline: none;
    background: transparent;
}

/* Server select */
body.login .main__input-server,
.wrapper .main__input-server {
    margin-top: 8px;
    border: 1px solid #000;
    height: 25px;
    width: 220px;
    font-size: 11px;
    background: #2a2a2a;
    display: block;
    color: #fff;
    font-family: "Tahoma", narrow;
    padding: 3px 5px;
    box-sizing: border-box;
    cursor: pointer;
}

body.login .main__input-server option,
.wrapper .main__input-server option {
    background-color: #433833;
    color: #fff;
}

/* Buttons container */
.main__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Top buttons row */
.main__btns-top {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
    width: 100%;
}

/* Bottom buttons row */
.main__btns-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Standard button */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/templates/kertas/assets/img/btn.png);
    background-size: 100% 100%;
    width: 100px;
    height: 29px;
    text-decoration: none;
    color: #fff;
    font-family: "Tahoma", narrow;
    font-size: 13px;
    line-height: 29px;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: url(/templates/kertas/assets/img/btn_action.png) center/100% 100%;
}

.btn:active {
    background: url(/templates/kertas/assets/img/btn-active.png) center/100% 100%;
}

/* Submit button input */
.btn__input {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/templates/kertas/assets/img/btn.png);
    background-size: 100% 100%;
    width: 100px;
    height: 29px;
    border: none;
    color: #fff !important;
    font-family: "Tahoma", narrow;
    font-size: 13px;
    cursor: pointer;
    line-height: 29px;
    text-shadow: none !important;
    text-align: center;
}

.btn,
.btn__input {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: crisp-edges; /* или pixelated для пиксельной графики */
}

.btn__input:hover {
    background: url(/templates/kertas/assets/img/btn_action.png) center/100% 100%;
}

.btn__input:active {
    background: url(/templates/kertas/assets/img/btn-active.png) center/100% 100%;
}

.btn__input::before {
    content: none !important;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/templates/kertas/assets/img/btn.png);
    background-size: 100% 100%;
    width: 100px;
    height: 29px;
    text-decoration: none;
    color: #fff !important;
    font-family: "Tahoma", narrow;
    font-size: 13px;
    line-height: 29px;
    cursor: pointer;
    border: none;
    text-shadow: none !important;
    text-align: center;
}

/* Forgot password button */
.main__btns-bottom {
    display: flex;
    justify-content: center;
    width: 195px;
    height: 25px;
    padding-top: 3px;
    background: url(/templates/kertas/assets/img/btn_forgotpass_.png) center/100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.main__btns-bottom:hover {
    background: url(/templates/kertas/assets/img/btn_forgotpass_action.png) center/100% 100%;
}

.main__btns-bottom:active {
    background: url(/templates/kertas/assets/img/btn_forgotpass_down.png) center/100% 100%;
}

.main__input-forget {
    font-size: 11px;
    color: #fff;
    font-family: "Tahoma", narrow;
    text-decoration: none;
}

/* Captcha */
.captcha {
    display: flex;
    justify-content: center;
    margin-top: 1px;
    width: 127%;
}

/* Error alert */
.alert-danger {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 11px;
    font-family: "Tahoma", narrow;
}

/* Navigation Bar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #433833;
    padding: 5px 0;
    height: 40px;
}

.navbar-custom .nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.navbar-custom .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/templates/kertas/assets/img/btn.png);
    background-size: 100% 100%;
    min-width: 85px;
    max-width: 100px;
    height: 29px;
    font-size: 11px;
    font-family: "Tahoma", narrow;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 0 5px;
    text-align: center;
    line-height: 29px;
    white-space: nowrap;
    overflow: hidden;
}

.navbar-custom .nav-link:hover {
    background: url(/templates/kertas/assets/img/btn_action.png) center/100% 100%;
}

.navbar-custom .nav-link:active {
    background: url(/templates/kertas/assets/img/btn-active.png) center/100% 100%;
}

/* Language buttons in navbar */
.menu__item-lang {
    background-image: none;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.menu__item-lang:hover {
    background: none;
}

.menu__link {
    font-size: 0.8125rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu__link img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Server Status & Logo Box */
.server-status-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Server Status & Logo Box - Top Center */
.server-status-box-top {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.server-logo-top {
    max-width: 280px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    transform: translateX(-270px); /* Сдвиг влево */
}

.server-logo-top:hover {
    transform: translateX(-270px) scale(1.1); /* ← Объединяем сдвиг и масштаб */
}

.server-logo {
    max-width: 200px;
    height: auto;
}

.server-launch-info {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
}

.server-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.server-status-indicator.status-online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.server-status-indicator.status-offline {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

.server-status-text {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* Login Server Status (inside box) */
.login-server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.login-server-status-label {
    color: #B49A88;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Top server status box on mobile */
    .server-status-box-top {
        top: 50px !important;
        gap: 10px !important;
        padding: 0 !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .server-logo-top {
        max-width: 180px !important;
    }

    .server-launch-info {
        font-size: 11px !important;
    }

    /* Main container - stack on mobile */
    body.login .main,
    .wrapper .main {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 95% !important;
        padding-bottom: 80px !important;
        margin-top: 180px !important;
    }

    /* News box on mobile */
    .news-box {
        width: 100% !important;
        max-width: 350px !important;
        max-height: 300px !important;
        order: 2 !important;
    }

    /* Login box on mobile */
    .main__login-box {
        width: 100% !important;
        max-width: 350px !important;
        padding: 15px 20px !important;
        order: 1 !important;
    }

    /* Server status box */
    .server-status-box {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .server-logo {
        max-width: 150px !important;
    }

    .server-launch-info {
        font-size: 12px !important;
    }

    /* Login server status inside box */
    .login-server-status {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        font-size: 10px !important;
    }

    /* Form inputs */
    .main__input-login,
    .main__input-server {
        width: 100% !important;
        font-size: 10px !important;
    }

    .main__input-form1 {
        width: 60px !important;
        font-size: 10px !important;
    }

    .main__input-form2 {
        margin-left: 8px !important;
    }

    /* Buttons container */
    .main__btns-top {
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .btn,
    .btn__input {
        width: 100% !important;
        max-width: 140px !important;
        height: 26px !important;
        font-size: 11px !important;
        line-height: 26px !important;
    }

    /* Forgot password button */
    .main__btns-bottom {
        width: 100% !important;
        height: 22px !important;
        margin-top: 6px !important;
    }

    .main__input-forget {
        font-size: 10px !important;
    }

    /* Footer adjustments for mobile */
    .footer {
        padding: 6px 10px !important;
    }

    .footer .rating-buttons {
        gap: 3px !important;
        margin-bottom: 4px !important;
    }

    .footer .rating-buttons img {
        width: 44px !important;
        height: 16px !important;
    }

    .footer-links {
        gap: 4px !important;
        margin-bottom: 2px !important;
        flex-wrap: wrap !important;
    }

    .footer-links a {
        font-size: 8px !important;
    }

    .footer-note {
        font-size: 8px !important;
    }

    /* Add padding to bottom of main so footer doesn't cover buttons */
    .main {
        padding-bottom: 80px !important;
    }

    /* Captcha smaller */
    .captcha {
        margin-top: 8px !important;
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    text-align: center;
    z-index: 100;
}

.footer .rating-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.footer .rating-buttons a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer .rating-buttons a:hover {
    opacity: 1;
}

.footer .rating-buttons img {
    display: block;
    width: 88px;
    height: 31px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.footer-links a {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 10px;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links-devider {
    color: rgba(255, 255, 255, 0.4);
}

.footer-note {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 10px;
    opacity: 0.8;
}
