@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

* {
    box-sizing: border-box; /* WAJIB: Biar input gak meluber keluar card */
    margin: 0;
    padding: 0;
}

body {
    background-color: #3e1b9b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: white;
}

.main-container {
    text-align: center;
    width: 100%;
    max-width: 340px; /* Ukuran container diperkecil biar pas */
}

.logo-text {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.welcome-text { font-weight: 900; font-size: 14px; margin-bottom: 5px; }
.subtitle-text { font-size: 10px; opacity: 0.8; margin-bottom: 25px; }

/* Card Body Sesuai Screenshot (435) */
.login-card {
    background-color: #2b146e;
    border-radius: 40px;
    padding: 40px 25px; /* Padding dalem card */
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

/* Tabs Login/Signup */
.auth-tabs {
    display: flex;
    background-color: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.tab.active {
    background: linear-gradient(180deg, #3e1b9b 0%, #1a0b4e 100%);
}

.tab.inactive {
    background: #757575; /* Abu-abu sesuai desain */
}

/* Group Input */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
    margin-left: 5px;
}

input {
    width: 100%; /* Dikunci box-sizing di atas biar gak ngelewatin bubble */
    padding: 12px 15px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    font-weight: bold;
    outline: none;
}

.forgot-link {
    display: block;
    font-size: 10px;
    margin: 20px 0;
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

/* Tombol Submit Utama */
.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(180deg, #1e0b5e 0%, #0d042d 100%);
    color: white;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Layout Utama Dashboard */
.dashboard-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.header-logo {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.section-title {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* CSS Grid buat 2 Kolom Sejajar */
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Kolom sama besar */
    gap: 20px;
    padding: 10px;
}

/* Card Game */
.game-card {
    background: #2b146e; /* Warna card gelap sesuai screenshot */
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    text-align: left;
}

.game-card:hover { transform: translateY(-5px); }

/* Wrapper Gambar biar Presisi */
.image-wrapper {
    width: 100%;
    height: 180px; /* Tinggi gambar seragam */
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar gambar gak penyet */
}

.game-info {
    padding: 10px;
}

.game-info h3 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2px;
}

.game-info p {
    font-size: 10px;
    opacity: 0.6;
}