/* ====== GLOBAL ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== LOGIN CONTAINER ====== */
.login-container {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 320px;
    animation: fadeIn 0.7s ease;
    position: relative;
}

/* ====== LOGO ====== */
.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.8);
    border: 3px solid #00aaff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 170, 255, 1);
}

/* ====== TITLE ====== */
.title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 5px 0;
    color: #00aaff;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.8);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

/* ====== INPUT FORM ====== */
input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: none;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 14px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

input:focus {
    outline: none;
    border: 1px solid #00aaff;
    box-shadow: 0 0 10px #00aaff;
}

/* ====== LOGIN BUTTON ====== */
button {
    width: 95%;
    padding: 10px;
    background-color: #00aaff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

button:hover {
    background-color: #0077cc;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.8);
}

/* ====== ERROR MESSAGE ====== */
#error-msg {
    color: red;
    margin-top: 10px;
    min-height: 20px;
}

/* ====== LOADING PALSU ====== */
.loading {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #ccc;
    border-top: 4px solid #00aaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== FOOTER ====== */
footer {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* ====== ANIMASI ====== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Animasi getar saat salah login */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s;
}