/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #100a05;
    overflow-x: hidden;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {

    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    justify-content: center;

    /*
     * CARD DILETAKKAN DI BAGIAN BAWAH
     * agar wajah karakter tidak tertutup
     */
    align-items: flex-end;

    padding: 30px 20px 45px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.25)
        ),
        url("login-bg.png");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    overflow: hidden;

    isolation: isolate;
}


/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.login-page::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,0.10) 70%,
            rgba(0,0,0,0.35) 100%
        );

    pointer-events: none;
}


/* =========================================================
   GOLD LIGHT
========================================================= */

.login-page::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    left: -180px;
    bottom: -220px;

    background:
        radial-gradient(
            circle,
            rgba(255,205,80,0.14),
            transparent 70%
        );

    z-index: -1;

    pointer-events: none;

    animation: goldLight 8s ease-in-out infinite alternate;
}

@keyframes goldLight {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(150px, -80px);
    }
}


```css
/* =========================================================
   FINAL - CARD LEBIH KECIL
   ========================================================= */

.login-card {
    max-width: 300px !important;

    padding:
        18px 19px 16px !important;

    border-radius:
        17px !important;

    background:
        linear-gradient(
            145deg,
            rgba(25, 17, 10, 0.72),
            rgba(8, 5, 3, 0.78)
        ) !important;

    backdrop-filter:
        blur(3px) !important;

    -webkit-backdrop-filter:
        blur(3px) !important;
}


/* LOGO */

.login-card .logo {

    width: 45px !important;
    height: 45px !important;

    margin:
        0 auto 5px !important;
}

.login-card .logo span {
    font-size: 21px !important;
}


/* JUDUL */

.login-card .login-title {

    font-size:
        23px !important;

    line-height:
        1 !important;
}


/* GARIS */

.login-card .gold-line {

    width:
        75px !important;

    margin:
        6px auto !important;
}


/* SUBTITLE */

.login-card .login-subtitle {

    font-size:
        9px !important;

    margin:
        0 0 12px !important;
}


/* LABEL */

.login-card .form-group label {

    font-size:
        9px !important;

    margin-bottom:
        3px !important;
}


/* JARAK INPUT */

.login-card .form-group {

    margin-bottom:
        9px !important;
}


/* INPUT */

.login-card .form-control {

    height:
        38px !important;

    font-size:
        11px !important;

    border-radius:
        8px !important;

    padding:
        0 38px 0 37px !important;
}



/* ICON */

.login-card .input-icon {

    left:
        11px !important;

    font-size:
        14px !important;
}


/* PASSWORD ICON */

.login-card .password-toggle {

    right:
        7px !important;

    font-size:
        14px !important;
}


/* REMEMBER / LUPA PASSWORD */

.login-card .form-options {

    margin:
        1px 0 11px !important;

    font-size:
        8px !important;
}


/* TOMBOL */

.login-card .login-button {

    height:
        39px !important;

    border-radius:
        8px !important;

    font-size:
        12px !important;
}


/* FOOTER */

.login-card .login-footer {

    margin-top:
        9px !important;

    font-size:
        7px !important;
}


/* =========================================================
   HP
   ========================================================= */

@media (max-width: 480px) {

    .login-page {

        align-items:
            flex-end !important;

        padding:
            8px 8px 12px !important;

        /*
         * Membuat background sedikit lebih terlihat
         */
        background-position:
            center center !important;
    }

    .login-card {

        max-width:
            285px !important;

        padding:
            16px 16px 14px !important;

        border-radius:
            15px !important;
    }

    .login-card .logo {

        width:
            42px !important;

        height:
            42px !important;
    }

    .login-card .logo span {
        font-size:
            19px !important;
    }

    .login-card .login-title {

        font-size:
            21px !important;
    }

    .login-card .login-subtitle {

        font-size:
            8px !important;

        margin-bottom:
            10px !important;
    }

    .login-card .form-control {

        height:
            36px !important;

        font-size:
            10px !important;
    }

    .login-card .login-button {

        height:
            37px !important;

        font-size:
            11px !important;
    }
}


/* =========================================================
   HP SANGAT KECIL
   ========================================================= */

@media (max-width: 360px) {

    .login-card {

        max-width:
            270px !important;

        padding:
            14px 14px 12px !important;
    }

    .login-card .logo {

        width:
            38px !important;

        height:
            38px !important;
    }

    .login-card .login-title {

        font-size:
            19px !important;
    }

    .login-card .form-control {

        height:
            34px !important;
    }

    .login-card .login-button {

        height:
            35px !important;
    }
}
```


/* =========================================================
   INNER GOLD BORDER
========================================================= */

.login-card::before {

    content: "";

    position: absolute;

    inset: 6px;

    border:
        1px solid
        rgba(255,215,110,0.15);

    border-radius: 15px;

    pointer-events: none;
}


/* =========================================================
   CARD ANIMATION
========================================================= */

@keyframes cardAppear {

    from {

        opacity: 0;

        transform:
            translateY(35px)
            scale(0.95);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    width: 58px;
    height: 58px;

    margin: 0 auto 8px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #fff0a4,
            #e4b332,
            #a56d0c
        );

    border:
        2px solid #80530a;

    box-shadow:

        0 0 0 4px
        rgba(231,183,55,0.09),

        0 8px 20px
        rgba(0,0,0,0.45);

    animation:
        logoFloat
        3.5s
        ease-in-out
        infinite;
}

.logo span {

    font-size: 27px;

    filter:
        drop-shadow(
            0 2px 2px
            rgba(0,0,0,.4)
        );
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* =========================================================
   TITLE
========================================================= */

.login-title {

    text-align: center;

    color: #f5ce62;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;

    font-weight: bold;

    letter-spacing: 2px;

    text-shadow:
        0 2px 5px rgba(0,0,0,.8);
}


/* =========================================================
   GOLD LINE
========================================================= */

.gold-line {

    width: 100px;

    height: 1px;

    margin:
        9px auto
        9px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #edc44e,
            transparent
        );
}


/* =========================================================
   SUBTITLE
========================================================= */

.login-subtitle {

    text-align: center;

    color: #c7b99e;

    font-size: 11px;

    letter-spacing: .5px;

    margin-bottom: 18px;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {

    margin-bottom: 14px;

    padding: 9px 11px;

    border-radius: 9px;

    color: #ffd0d0;

    background:
        rgba(120,20,20,.35);

    border:
        1px solid
        rgba(255,80,80,.35);

    font-size: 11px;

    text-align: center;

    animation: errorShake .35s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {

    position: relative;

    margin-bottom: 12px;
}


/* =========================================================
   LABEL
========================================================= */

.form-group label {

    display: block;

    margin-bottom: 5px;

    color: #d8c9ac;

    font-size: 11px;

    letter-spacing: .4px;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {

    position: relative;

    width: 100%;
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {

    position: absolute;

    left: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 2;

    font-size: 16px;
}


/* =========================================================
   INPUT
========================================================= */

.form-control {

    width: 100%;

    height: 44px;

    padding:
        0 42px
        0 41px;

    border:
        1px solid
        rgba(165,120,35,.72);

    border-radius: 9px;

    outline: none;

    color: #fff;

    font-size: 13px;

    background:
        rgba(10,7,4,.58);

    transition: .25s;
}

.form-control::placeholder {

    color: #8e806c;
}

.form-control:hover {

    border-color:
        rgba(232,188,65,.75);
}

.form-control:focus {

    border-color:
        #efc64d;

    background:
        rgba(20,13,7,.72);

    box-shadow:

        0 0 0 2px
        rgba(239,198,77,.10),

        0 0 15px
        rgba(239,198,77,.10);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background:
        transparent;

    color:
        #dcb84c;

    cursor: pointer;

    font-size: 16px;

    border-radius: 50%;

    transition: .2s;
}

.password-toggle:hover {

    color: #ffe99a;

    background:
        rgba(255,210,70,.10);

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =========================================================
   FORM OPTIONS
========================================================= */

.form-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin:
        2px 1px
        15px;

    font-size: 10px;
}


/* =========================================================
   REMEMBER
========================================================= */

.remember {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #aaa08e;

    cursor: pointer;
}

.remember input {

    width: 14px;
    height: 14px;

    margin: 0;

    accent-color:
        #d9ad38;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.forgot {

    color:
        #dfb941;

    text-decoration: none;

    transition: .2s;
}

.forgot:hover {

    color:
        #ffe69a;

    text-decoration:
        underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    position: relative;

    width: 100%;

    height: 45px;

    border: none;

    border-radius: 9px;

    outline: none;

    cursor: pointer;

    overflow: hidden;

    color:
        #2b1b05;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 1px;

    background:
        linear-gradient(
            135deg,
            #fff1a8,
            #f1cf62,
            #dba82b,
            #bd8010,
            #f1ca58
        );

    box-shadow:

        0 4px 0
        #79500b,

        0 8px 18px
        rgba(0,0,0,.35);

    transition: .2s;
}


/* =========================================================
   BUTTON SHINE
========================================================= */

.login-button::before {

    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.50),
            transparent
        );

    transform:
        skewX(-20deg);

    animation:
        buttonShine
        3.5s
        ease-in-out
        infinite;
}

@keyframes buttonShine {

    0% {
        left: -120%;
    }

    35%,
    100% {
        left: 160%;
    }
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 6px 0
        #79500b,

        0 12px 25px
        rgba(0,0,0,.45);
}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.login-button:active {

    transform:
        translateY(3px);

    box-shadow:

        0 2px 0
        #79500b,

        0 5px 12px
        rgba(0,0,0,.3);
}


/* =========================================================
   LOADING
========================================================= */

.login-button.loading {

    pointer-events: none;

    opacity: .8;
}

.login-button.loading .button-text {

    opacity: 0;
}

.login-button.loading::after {

    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 50%;
    top: 50%;

    margin-left: -9px;
    margin-top: -9px;

    border:
        3px solid
        rgba(50,30,5,.25);

    border-top-color:
        #2b1b05;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    margin-top: 13px;

    text-align: center;

    color:
        #756a5a;

    font-size: 9px;

    line-height: 1.5;
}

.login-footer strong {

    color:
        #caa43b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .login-page {

        padding:
            25px
            18px
            30px;

        background-position:
            center center;
    }

    .login-card {

        max-width:
            340px;
    }
}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 480px) {

    .login-page {

        min-height: 100dvh;

        align-items: flex-end;

        padding:
            12px
            10px
            16px;

        /*
         * Background sedikit dinaikkan
         */
        background-position:
            center center;
    }

    .login-card {

        max-width:
            325px;

        padding:
            19px
            17px
            16px;

        border-radius:
            17px;

        background:
            linear-gradient(
                145deg,
                rgba(29,20,12,.76),
                rgba(10,7,4,.82)
            );
    }

    .logo {

        width: 50px;
        height: 50px;

        margin-bottom: 7px;
    }

    .logo span {

        font-size: 22px;
    }

    .login-title {

        font-size: 24px;
    }

    .gold-line {

        width: 85px;

        margin:
            8px auto;
    }

    .login-subtitle {

        font-size: 10px;

        margin-bottom: 14px;
    }

    .form-group {

        margin-bottom: 10px;
    }

    .form-group label {

        font-size: 10px;
    }

    .form-control {

        height: 41px;

        font-size: 12px;
    }

    .input-icon {

        left: 12px;

        font-size: 15px;
    }

    .password-toggle {

        right: 8px;

        font-size: 15px;
    }

    .form-options {

        font-size: 9px;

        margin-bottom: 13px;
    }

    .login-button {

        height: 42px;

        font-size: 13px;
    }

    .login-footer {

        margin-top: 11px;

        font-size: 8px;
    }
}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 360px) {

    .login-page {

        padding:
            8px
            8px
            12px;
    }

    .login-card {

        max-width:
            305px;

        padding:
            16px
            14px
            13px;
    }

    .logo {

        width: 45px;
        height: 45px;
    }


    .logo span {

        font-size: 20px;
    }

    .login-title {

        font-size: 21px;
    }

    .login-subtitle {

        margin-bottom: 10px;
    }

    .form-control {

        height: 38px;
    }

    .login-button {

        height: 39px;
    }

    .login-footer {

        display: none;
    }
}


/* =========================================================
   HP LANDSCAPE
========================================================= */

@media (max-height: 600px)
       and (orientation: landscape) {

    .login-page {

        align-items: center;

        padding: 10px;
    }

    .login-card {

        max-width:
            330px;

        padding:
            13px
            17px;
    }

    .logo {

        display: none;
    }

    .login-title {

        font-size: 21px;
    }

    .login-subtitle {

        margin-bottom: 8px;
    }

    .form-group {

        margin-bottom: 7px;
    }

    .form-control {

        height: 36px;
    }

    .login-button {

        height: 37px;
    }

    .login-footer {

        display: none;
    }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}