* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #60a5fa);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* WRAPPER */
.login-wrapper {
    width: 100%;
    padding: 20px;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 40px 35px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    text-align: center;
    color: white;
}

/* HEADER CONTAINER */
.login-header {
    margin-bottom: 30px;
}

/* LOGO WRAPPER */
.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    animation: floatLogo 6s ease-in-out infinite;
}

/* GLOW EFFECT */
.logo-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
    filter: blur(35px);
    z-index: 0;
}

/* LOGO IMAGE */
.logo-wrapper img {
    width: 200px;
    position: relative;
    z-index: 2;
}

.logo-wrapper:hover img {
    transform: scale(1.05);
    transition: 0.4s ease;
}

.logo-wrapper {
    display: inline-block; /* agar bisa diberi transform */
    text-decoration: none; /* hilangkan underline */
    cursor: pointer;
}

/* FLOAT ANIMATION */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ===============================
   TITLE
================================= */
.login-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 22px;
    letter-spacing: 0.3px;
}

/* GRADIENT TEXT (Safe Version) */
.login-title span {
    background: linear-gradient(90deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* SUBTITLE */
.login-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 28px;
    font-weight: 400;
}


/* ===============================
   FORM
================================= */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

/* INPUT */
.form-control {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}


/* ===============================
   TOGGLE PASSWORD
================================= */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 42px;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    transition: 0.3s ease;
}

.toggle-password:hover {
    color: #0d6efd;
    transform: scale(1.1);
}


/* ===============================
   BUTTON
================================= */
.login-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #0d6efd, #3a8bfd);
    color: white;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(13,110,253,0.35);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(13,110,253,0.25);
}


/* ===============================
   VALIDATION
================================= */
.invalid-feedback {
    font-size: 12px;
}


/* ===============================
   OPTIONAL: SMOOTH FADE IN
================================= */
#loginForm {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DIVIDER */
.header-divider {
    width: 60px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    opacity: 0.8;
}

/* FORM */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 14px;
    border: none;
    outline: none;
    font-size: 14px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 14px;
    font-size: 13px;
    color: #64748b;
    transition: 0.3s ease;
    pointer-events: none;
}

/* Floating Effect */
.form-group input:focus + label,
.form-group input:valid + label {
    top: -8px;
    left: 10px;
    font-size: 11px;
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
    color: #1e3a8a;
}

/* PASSWORD ICON */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 14px;
    cursor: pointer;
    color: #64748b;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.login-btn:active {
    transform: scale(0.96);
}

.login-footer {
    margin-top: 20px;
    font-size: 13px;
}

.login-footer a {
    color: white;
    text-decoration: underline;
}

/* RESPONSIVE */
@media(max-width: 420px){
    .login-card {
        padding: 30px 20px;
    }
}
