* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e6d2b5 0%, #d4c4a8 50%, #c2b49b 100%);
    min-height: 100vh;
    font-family: 'Cabin', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 30px 0;
}

/* Background decoration */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(115, 79, 48, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Back button */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #734f30, #8B4513);
    color: #f5f5dc;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid #daa520;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Wrapper untuk login-container + panel demo akun */
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 0 20px;
}

/* Login container */
.login-container {
    background: linear-gradient(145deg, rgba(230, 210, 181, 0.95), rgba(212, 196, 168, 0.95));
    border: 5px solid #daa520;
    border-radius: 25px;
    padding: 50px 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    margin: 0;
    position: relative;
}

/* Login header */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 42px;
    color: #3a4d39;
    text-shadow: 
        2px 2px 0 #daa520,
        -1px -1px 0 #734f30;
    letter-spacing: 2px;
}

/* Form styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 18px;
    color: #3a4d39;
    font-weight: 600;
}

.form-input {
    padding: 15px 18px;
    background-color: rgba(245, 245, 220, 0.9);
    border: 3px solid #734f30;
    border-radius: 12px;
    color: #3a4d39;
    font-size: 16px;
    font-family: 'Cabin', sans-serif;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(58, 77, 57, 0.5);
}

.form-input:focus {
    border-color: #daa520;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
}

/* Password group */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group .form-input {
    flex: 1;
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

.password-toggle:hover {
    transform: scale(1.15);
}

/* Submit button */
.login-btn {
    padding: 18px 40px;
    background: linear-gradient(45deg, #3a4d39, #4a6349);
    color: #f5f5dc;
    border: 4px solid #daa520;
    border-radius: 20px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 0 #2c3c2c, 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #2c3c2c, 0 12px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #4a6349, #5a7359);
}

.login-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #2c3c2c, 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Panel akun demo, gaya senada dengan login-container */
.demo-container {
    background: linear-gradient(145deg, rgba(230, 210, 181, 0.95), rgba(212, 196, 168, 0.95));
    border: 5px solid #daa520;
    border-radius: 25px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 100%;
}

.demo-header {
    text-align: center;
    margin-bottom: 18px;
}

.demo-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 26px;
    color: #3a4d39;
    text-shadow: 1px 1px 0 #daa520;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.demo-subtitle {
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
    color: #6b4c2a;
}

.demo-password-note {
    text-align: center;
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
    color: #6b4c2a;
    margin-bottom: 14px;
}

.demo-password-note strong {
    color: #3a4d39;
}

/* wrapper biar tabel bisa di-scroll ke samping di layar sempit, gak pecah layoutnya */
.demo-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* tabel akun demo, 4 kolom per baris biar ringkas walau datanya banyak (24 akun) */
.demo-table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
}

.demo-table td {
    border: 2px solid #734f30;
    background: rgba(245, 245, 220, 0.9);
    color: #331a00;
    font-weight: 600;
    text-align: center;
    padding: 9px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.85);
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 40px;
    }
    
    .login-title {
        font-size: 36px;
    }

    .demo-container {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .back-btn {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .login-container {
        padding: 35px 30px;
        border-width: 4px;
    }
    
    .login-title {
        font-size: 32px;
    }
    
    .form-input {
        padding: 13px 16px;
        font-size: 15px;
    }
    
    .login-btn {
        padding: 16px 35px;
        font-size: 20px;
    }

    .page-content {
        padding: 0 12px;
        gap: 18px;
    }

    .demo-container {
        padding: 22px 16px;
        border-width: 4px;
    }

    .demo-title {
        font-size: 22px;
    }

    .demo-table {
        font-size: 13px;
        min-width: 400px;
    }

    .demo-table td {
        padding: 7px 6px;
    }
}