/* ===========================
   GOOGLE FONT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===========================
   RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===========================
   BACKGROUND ANIMATED
=========================== */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0b3d2e, #14532d, #1f2933, #166534);
    background-size: 400% 400%;
    animation: gradientMove 14s ease infinite;
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================
   LOGIN CARD (PUTIH SOLID)
=========================== */
.container {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 36px 32px 42px;
    border-radius: 18px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.30);
    animation: fadeSlide 0.9s ease;
}

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   LOGO
=========================== */
.logo-box {
    text-align: center;
    margin-bottom: 28px;
}

.logo-box img {
    max-width: 150px;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

/* Floating logo */
@keyframes logoFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ===========================
   FORM INPUT
=========================== */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #22c55e;
    font-size: 15px;
}

.input-box input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 40px;
    border-radius: 10px;
    border: 1.5px solid #E5E7EB;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-box input::placeholder {
    color: #9CA3AF;
}

.input-box input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* ===========================
   BUTTON
=========================== */
.button input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #14532d, #166534);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button input:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(20, 83, 45, 0.45);
}

.button input:active {
    transform: scale(0.97);
}

/* ===========================
   ERROR MESSAGE
=========================== */
.error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {
    .container {
        margin: 0 15px;
        padding: 32px 24px 36px;
    }

    .logo-box img {
        max-width: 120px;
    }
}
