:root {
    --color-primary: #013d20;
    --color-accent: #e5771c;
    --color-gold: #bda063;
    --color-taupe: #c29d69;
    --color-light-bg: #f5ebe0;
    --color-white: #ffffff;
    --color-text-dark: #2c2c2c;
    --color-text-light: #666666;
    --color-border: #e0d5c7;
    --color-success: #10b981;
    --color-error: #ef4444;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        #0d5c37 50%,
        var(--color-taupe) 100%
    );
    overflow: hidden;
    position: relative;
}

/* LOGIN CARD */
.login-card {
    width: 450px;
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(194, 157, 105, 0.45);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-card img {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 180px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: #bda063;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 25px;
}

/* INPUT FIELD */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-box {
    width: 100%;
    padding: 12px 50px 12px 45px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(194, 157, 105, 0.5);
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    color: black;
    transition: all 0.3s ease;
}

.input-box:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(235, 118, 19, 0.15);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #c29d69;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #c29d69;
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #e5771c;
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    font-size: 16px;
    transition: 0.3s;
    margin-bottom: 10px;
}

.registrasi {
    color: #bda063;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-registrasi {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.btn-daftar {
    width: 100%;
    padding: 12px;
    background: #e5771c;
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    background: #ff8a33;
}

.btn-daftar:hover {
    background: #ff8a33;
}

/* ERROR MESSAGE */
.error-msg {
    background: #e03939;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #fff;
}

/* LINKS */
.lupaPassword {
    margin-bottom: 10px;
    border-bottom: 1px solid #e5771c;
    padding-bottom: 30px;
}

.lupaPassword a {
    color: #bda063;
    font-size: 14px;
    text-decoration: none;
    padding: 15px;
}

.linkBalik {
    color: #bda063;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    width: 80px;
    display: flex;
    flex-flow: row;
}

/* === EFFECT BACKGROUND MENGIKUTI KURSOR === */

#cursor-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 70%);
    transition: background-position 0.15s linear;
    z-index: 0;
}

    


/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet Landscape & Laptop Kecil */
@media (max-width: 1024px) {
    .login-card {
        width: 430px;
        padding: 35px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .login-card {
        width: 90%;
        padding: 30px;
        backdrop-filter: blur(10px);
    }

    img {
        max-width: 160px;
    }

    h2 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }
}

/* HP Layar Sedang (typical Android) */
@media (max-width: 480px) {
    .login-card {
        width: 100%;
        padding: 28px;
        border-radius: 16px;
    }

    img {
        max-width: 140px;
    }

    h2 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 12px;
    }

    .input-box {
        padding: 12px 45px 12px 40px;
        font-size: 14px;
    }

    .input-icon,
    .toggle-password {
        font-size: 16px;
    }

    .btn-login {
        font-size: 15px;
        padding: 11px;
    }
}

/* HP Kecil (iPhone 5, Android kecil) */
@media (max-width: 360px) {
    .login-card {
        padding: 22px;
        border-radius: 14px;
    }

    img {
        max-width: 120px;
    }

    h2 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 11px;
    }

    .input-box {
        font-size: 13px;
        padding-left: 38px;
    }

    .input-icon {
        left: 12px;
        font-size: 15px;
    }

    .toggle-password {
        right: 12px;
        font-size: 15px;
    }

    .btn-login {
        font-size: 14px;
        padding: 10px;
    }
}
