/* ========== RESET DASAR ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* ========== KOTAK LOGIN ========== */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    color: #4a47a3;
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.error-message {
    background: #ffe0e0;
    color: #d32f2f;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: none;           /* Sembunyi jika kosong */
}
.error-message:not(:empty) {
    display: block;
}

/* ========== FORM INPUT & SELECT ========== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a47a3;
}

/* Styling untuk input teks/password */
.input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
}

/* Styling untuk dropdown (select) */
select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
}

select:focus {
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #5a6fd6;
}

.btn-login:active {
    transform: scale(0.98);
}

.info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

/* ========== DASHBOARD ========== */
.dashboard-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
}

.btn-logout {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #b71c1c;
}