/* ======= Pastel UI Style สำหรับหน้า LOGIN ======= */

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 50%, #fce7f3 100%);
    min-height: 100vh;
    margin: 0;
}

/* Travian header ดั้งเดิม (artwork1-ltr.jpg) */
.travian-header {
    height: 110px;
    background: url("gpack/travian_default/images/artwork1-ltr.jpg") top center no-repeat;
    background-size: cover;
}

/* ====== จัด 3 กล่องให้กึ่งกลางเว็บ ====== */
#mid.login-modern {
    display: flex;
    gap: 20px;
    padding: 25px;

    justify-content: center;     /* ⭐ ให้ 3 กล่องอยู่กึ่งกลาง */
    margin: 0 auto;
    width: 100%;
    max-width: 1500px;            /* ⭐ ไม่ให้เกินกว่านี้ */
}


/* ===== Sidebar Menu (Left Panel) ===== */

.sidebar-menu {
    flex: 1.5;
    min-width: 300px;
    max-width: 400px;

    background: #fff;
    border: 3px solid #a78bfa;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    overflow: hidden;
}

/* Header — แบบเดียวกับ Server Info */
.sidebar-menu h3 {
    background: #ddd6fe;
    padding: 18px 0;
    margin: 0;
    border-bottom: 3px solid #a78bfa;

    font-family: 'Bangers', cursive;
    text-align: center;
    font-size: 26px;
    color: #7c3aed;
}

/* ⭐ จัดทุกปุ่มให้อยู่กึ่งกลาง */
.sidebar-menu .menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Menu Items */
.menu-item {
    display: block;
    width: 100%;                 /* ⭐ ปุ่มกว้างเต็มพื้นที่ */
    padding: 12px;
    margin-bottom: 12px;

    color: #64748b;
    background: #f8fafc;
    font-weight: 700;
    text-decoration: none;

    border-radius: 12px;
    border: 2px solid transparent;

    transition: 0.25s;
}

.menu-item:hover {
    background: #fb7185;
    color: #fff;
    border-color: #f472b6;
    transform: translateX(5px);
}

.menu-item.active {
    background: #4ade80;
    color: #fff;
}


/* ===== Login Box ===== */

#content.login {
    background: rgba(255,255,255,0.97);
    border: 4px solid #a78bfa;
    border-radius: 20px;
    padding: 40px;

    flex: 2;              
    max-width: 650px;
    min-width: 460px;

    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.login-header h1 {
    font-family: 'Bangers', cursive;
    font-size: 46px;
    color: #ec4899;
    text-align: center;
    margin-bottom: 20px;
}

.login-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 3px solid #e0e7ff;
    background: #faf5ff;
    font-size: 16px;
    transition: 0.25s;
}

.form-group input:focus {
    border-color: #a78bfa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(167,139,250,0.2);
}

.btn-login {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 3px solid #f9a8d4;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 22px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236,72,153,0.4);
}


/* ===== Error Box ===== */

.error-box {
    background: #fee2e2;
    border: 3px solid #fca5a5;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

.error {
    color: #dc2626;
    font-weight: 700;
}


/* ===== Countdown ===== */
.activation_time {
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 60px;
    margin: 30px 0;
    color: #ec4899;
}


/* ===== Server Info Panel (Right Column) ===== */

#side_info.info-panel {
    flex: 1;
    min-width: 280px;
    max-width: 350px;

    background: #fff;
    border: 3px solid #a78bfa;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.15);
}

/* Header */
.game-info-header {
    width: 100%;
    display: block;
    background: #ddd6fe;
    text-align: center;
    padding: 18px 0;  
    margin: 0;
    border-bottom: 3px solid #a78bfa;
}

.game-info-header h2 {
    font-family: 'Bangers', cursive;
    margin: 0;
    font-size: 26px;
    color: #7c3aed;
    letter-spacing: 1px;
}

.game-info-header p {
    margin-top: 5px;
    font-size: 14px;
    color: #5b21b6;
}

/* เนื้อหาภายใน */
.info-list {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-weight: 800;
    color: #ec4899;
    font-size: 16px;
}

/* Highlight Box */
.info-highlight {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    padding: 18px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    border: 2px solid #fbbf24;
}

.info-highlight .label {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-highlight .value {
    font-size: 32px;
    font-family: 'Bangers', cursive;
    color: #d97706;
}


/* ===== Responsive ===== */

@media (max-width: 1024px) {
    #mid.login-modern {
        flex-direction: column;
        max-width: 95%;
    }

    #side_info.info-panel,
    .sidebar-menu {
        width: 100%;
    }
}
