@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    animation: fadeInUp 0.8s ease-out;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.2);
    width: 100%;
    max-width: 360px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}


.login-box:hover {
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.3);
}

.brand {
    font-size: 32px;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 10px;
}

.login-box h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}

form input {
    width: 100%;
    max-width: 332px; /* Batasi lebar maksimum */
    padding: 12px;
    margin: 0 auto 15px auto; /* Tengah + jarak bawah */
    display: block; /* Supaya bisa ditengah pakai margin auto */
    border: 1.5px solid #cceeff;
    border-radius: 8px;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #00aaff;
    outline: none;
    background-color: #f9fcff;
}
input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
    transition: 0.3s;
}


form button {
    width: 100%;
    padding: 12px;
    background-color: #00aaff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #008fcc;
}

.error {
    background-color: #ffe6e6;
    color: #cc0000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
}
.links {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.links a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.links a:hover {
    color: #008fcc;
}
