/* =========================================================
   IMPORT 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;
}

html{
    scroll-behavior:smooth;
}

/* =========================================================
   BODY
========================================================= */
body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    overflow-x:hidden;
    position:relative;

    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url('../image/background/galeri1.jpeg');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

body::before{
    content:'';
    position:fixed;
    inset:0;

    backdrop-filter:blur(3px);

    z-index:-1;
}

@keyframes float{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-20px);
    }
}

/* =========================================================
   LOGIN CARD
========================================================= */
.login-card{
    width:100%;
    max-width:420px;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(20px);
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 25px 50px rgba(0,0,0,0.2);
    animation:slideUp .8s ease-out;
    border:none;
}

/* Animation */
@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   HEADER
========================================================= */
.card-header{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:white;
    text-align:center;
    padding:40px 30px;
}

/* =========================================================
   LOGO
========================================================= */
.logo-container{
    width:100px;
    height:100px;
    margin:0 auto 20px;
    border-radius:20px;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(10px);

    border:3px solid rgba(255,255,255,0.3);
}

.logo-img{
    width:90px;
    height:90px;
    object-fit:contain;
    border-radius:15px;
    transition:.3s;
}

.logo-img:hover{
    transform:scale(1.05);
}

/* =========================================================
   TITLE
========================================================= */
.card-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:5px;
}

.card-subtitle{
    font-size:14px;
    opacity:.9;
}

/* =========================================================
   BODY CONTENT
========================================================= */
.card-body{
    padding:40px 30px 30px;
}

/* =========================================================
   FORM GROUP
========================================================= */
.form-group{
    position:relative;
    margin-bottom:28px;
    transition:.3s;
}

/* =========================================================
   INPUT
========================================================= */
.form-group input{
    width:100%;
    padding:18px 20px 18px 50px;

    border:2px solid #e9ecef;
    border-radius:16px;

    background:transparent;
    backdrop-filter:blur(10px);

    font-size:16px;
    font-weight:500;

    transition:all .3s ease;
}

/* Hover */
.form-group input:hover{
    border-color:#667eea;
}

/* Focus */
.form-group input:focus{
    outline:none;

    border-color:#667eea;
    background:rgba(255,255,255,.5);

    box-shadow:0 0 0 4px rgba(102,126,234,.15);

    transform:translateY(-2px);
}

/* =========================================================
   ICON
========================================================= */
.input-icon{
    position:absolute;
    top:18px;
    left:18px;

    width:24px;
    height:24px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;
    color:#6c757d;

    z-index:2;
    transition:.3s;
}

/* Icon focus */
.form-group input:focus + .input-icon{
    color:#667eea;
    transform:scale(1.1);
}

/* =========================================================
   LABEL FLOATING
========================================================= */
.form-group label{
    position:absolute;
    top:18px;
    left:50px;

    color:#6c757d;
    font-size:15px;
    font-weight:500;

    pointer-events:none;

    transition:.3s;
}

/* Floating effect */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label{
    top:-8px;
    left:12px;

    background:rgba(255,255,255,.95);

    padding:2px 8px;
    border-radius:6px;

    font-size:12px;
    color:#667eea;
}

/* =========================================================
   BUTTON LOGIN
========================================================= */
.btn-login{
    width:100%;

    border:none;
    border-radius:16px;

    padding:16px 30px;

    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);

    color:white;
    font-size:16px;
    font-weight:600;
    letter-spacing:.5px;
    text-transform:uppercase;

    transition:all .3s ease;

    overflow:hidden;
}

/* Hover */
.btn-login:hover{
    transform:translateY(-3px) scale(1.02);

    box-shadow:0 15px 35px rgba(102,126,234,.4);
}

/* =========================================================
   BUTTON BACK
========================================================= */
.btn-back{
    width:100%;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:14px 30px;

    border:none;
    border-radius:16px;

    background:linear-gradient(135deg,#6c757d 0%,#495057 100%);

    color:white !important;
    text-decoration:none;

    font-size:15px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.5px;

    transition:all .3s ease;
}

/* Hover */
.btn-back:hover{
    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(108,117,125,.4);

    color:white !important;
    text-decoration:none;
}

/* =========================================================
   FORGOT PASSWORD
========================================================= */
.forgot-password{
    text-align:center;
    margin-top:20px;
}

.forgot-password a{
    color:#667eea;
    text-decoration:none;
    font-size:14px;
    font-weight:500;

    display:inline-flex;
    align-items:center;
    gap:6px;

    transition:.3s;
}

.forgot-password a:hover{
    color:#764ba2;
    transform:translateY(-2px);
}

/* =========================================================
   SHAKE ANIMATION
========================================================= */
@keyframes shake{
    0%,100%{
        transform:translateX(0);
    }

    25%{
        transform:translateX(-5px);
    }

    75%{
        transform:translateX(5px);
    }
}

.shake{
    animation:shake .5s ease-in-out;
}

/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */
button:focus,
input:focus,
a:focus{
    outline:none;
}

/* =========================================================
   COPYRIGHT
========================================================= */
.copyright{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);

    color:rgba(255,255,255,.9);
    font-size:13px;
}



/* =========================================================
   MOBILE RESPONSIVE
========================================================= */
@media (max-width:480px){

    body{
        padding:15px;
    }

    .login-card{
        border-radius:20px;
    }

    .card-header{
        padding:30px 20px;
    }

    .card-body{
        padding:30px 20px 20px;
    }

    .card-title{
        font-size:24px;
    }

    .card-subtitle{
        font-size:13px;
    }

    .logo-container{
        width:90px;
        height:90px;
    }

    .logo-img{
        width:80px;
        height:80px;
    }

    .form-group input{
        padding:16px 18px 16px 48px;
        font-size:14px;
    }

    .btn-login,
    .btn-back{
        padding:14px;
        font-size:14px;
    }
}