body {
    margin: 0;
    background: #000;
    font-family: "Kanit", sans-serif;
	background: url('http://warzironz.com/img/background.png');
    background-size: cover;
}

.login-wrapper {
    min-height: calc(100vh - 80px); /* ลบพื้นที่ Navbar ออกด้วย */
    display: flex;
    justify-content: center;
    align-items: center;  /* ⭐ จัดกลางตามแนวตั้ง */
    padding: 40px 20px; /* กันชิดเกินไปบนมือถือ */
}


/* กล่องหลัก */
.login-box {
    width: 900px;
    background: rgba(0,0,0,0.65);
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* ซ้าย */
.login-left {
    width: 55%;
    padding: 40px 40px;
    color: #fff;
}

.login-logo {
    width: 90px;
    display: block;
    margin: 0 auto 10px auto;
}

.login-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 5px;
}

.login-sub {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 25px;
}

/* input */
.input-field {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
	font-family: "Kanit", sans-serif;
}

.input-field::placeholder {
    color: #bbb;
}

/* remember */
.remember-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-row a {
    color: #ccc;
}

/* ปุ่ม login */
.login-btn {
    width: 100%;
    padding: 14px;
    background: #2b2b2b;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.2s;
	font-family: "Kanit", sans-serif;
}
.login-btn {
    width: calc(100% + 30px);
     
}
.login-btn:hover {
    background: #ff2b2b;
}

/* สมัครสมาชิก */
.register-row {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.register-row a {
    color: #ff2b2b;
}

/* ฝั่งขวา */
.login-right {
    width: 45%;
    padding: 16px;
}

.promo-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* มือถือ */
@media(max-width: 900px) {
    .login-box {
        flex-direction: column;
        width: 95%;
    }

    .login-left, .login-right {
        width: 100%;
    }

    .promo-img {
        height: 260px;
        object-fit: cover;
    }
}
/* ================================
   SweetAlert2 Toast — WARZ MINIMAL
================================ */
.swal2-container.swal2-top-end,
.swal2-container.swal2-bottom-end {
    pointer-events: none !important;
}

.swal2-toast {
    pointer-events: auto;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(4px);
    color: #fff !important;
    font-family: "Kanit", sans-serif;
    border-left: 4px solid #e53935 !important; /* เส้นแดงซิกเนเจอร์ */
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.35);
}

/* ไอคอน */
.swal2-toast .swal2-icon {
    margin-right: 8px !important;
    width: 26px !important;
    height: 26px !important;
}

/* Text */
.swal2-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

/* Progress bar ↓ */
.swal2-timer-progress-bar {
    background: #e53935 !important;
    height: 3px !important;
}

/* Success */
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #81c784 !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #81c784 !important;
}

/* Error */
.swal2-icon.swal2-error {
    border-color: #ef5350 !important;
    color: #ef5350 !important;
}

/* Warning */
.swal2-icon.swal2-warning {
    border-color: #ffb74d !important;
    color: #ffb74d !important;
}

/* Animation */
.swal2-toast-show {
    animation: toastIn 0.35s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
/* ================================
   📱 Mobile Responsive Override
   ================================ */

@media(max-width: 600px) {

    /* กล่องรวมทั้งหมด */
    .login-wrapper {
        padding: 20px 12px;
        min-height: auto;
    }

    /* กล่อง login */
    .login-box {
        width: 100% !important;
        border-radius: 12px;
        flex-direction: column !important;
        overflow: hidden;
    }

    /* ซ้าย */
    .login-left {
        width: 100% !important;
        padding: 25px 20px !important;
        text-align: center;
    }

    .login-title {
        font-size: 22px !important;
    }

    .login-sub {
        font-size: 13px !important;
    }

    /* ช่องกรอก */
    .input-field {
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* ปุ่ม login — แก้ไม่ให้ล้น */
    .login-btn {
        width: 100% !important;
        font-size: 16px !important;
        padding: 13px !important;
        margin-top: 10px !important;
    }

    /* remember */
    .remember-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* สมัครสมาชิก */
    .register-row {
        font-size: 13px !important;
    }

    /* ฝั่งขวา (รูปโปรโมชั่น) */
    .login-right {
        width: 100% !important;
        padding: 12px !important;
        order: -1; /* ⭐ รูปขึ้นไปอยู่บนก่อน */
    }

    .promo-img {
        width: 100% !important;
        height: 200px !important;
        border-radius: 10px;
        object-fit: cover;
    }
}
