/* =====================================================
   LOGIN PAGE
   ===================================================== */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a,
button,
input,
textarea,
select,
div {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

body {
    margin: 0;
    background: #080808;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}


/* =====================================================
   BACKGROUND
   ===================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%,
            #242424 0%,
            #111 35%,
            #080808 70%);
}


/* garis dekorasi */

.login-page::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    top: -300px;
    right: -150px;
}


.login-page::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 50%;
    bottom: -280px;
    left: -180px;
}


/* =====================================================
   LOGIN CARD
   ===================================================== */

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 42px 38px 35px;
    background: rgba(18, 18, 18, .92);
    border: 1px solid #292929;
    border-radius: 20px;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, .55);

    backdrop-filter: blur(15px);
}


/* =====================================================
   BRAND
   ===================================================== */

.brand {
    text-align: center;
    font-size: clamp(19px, 5vw, 25px);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 42px;
}

.brand span {

    color: #888;
}


/* =====================================================
   HEADER
   ===================================================== */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-label {
    margin: 0 0 10px;
    color: #888;
    font-size: clamp(9px, 2.3vw, 10px);
    font-weight: 800;
    letter-spacing: 3px;
}


.login-header h1 {
    margin: 0;
    font-size: clamp(26px, 8vw, 36px);
    font-weight: 900;
    letter-spacing: -1px;
}


.login-desc {
    max-width: 290px;
    margin: 12px auto 0;
    color: #888;
    font-size: clamp(12px, 3vw, 13px);
    line-height: 1.6;
}


/* =====================================================
   GOOGLE BUTTON
   ===================================================== */

.google-login {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #353535;
    border-radius: 11px;
    background: #fff;
    color: #111;
    font-size: clamp(13px, 3.2vw, 14px);
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.google-login:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .35);
}


.google-login:active {
    transform: translateY(0);

}


.google-login svg {
    flex-shrink: 0;
}


/* =====================================================
   DIVIDER
   ===================================================== */

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 22px;
    color: #555;
    font-size: clamp(8px, 2vw, 9px);
    font-weight: 700;
    letter-spacing: 2px;
}


.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #292929;
}


/* =====================================================
   LOGIN INFO
   ===================================================== */

.login-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    background: #101010;
    border: 1px solid #222;
    border-radius: 9px;
}


.login-info p {
    margin: 0;
    color: #777;
    font-size: clamp(10px, 2.5vw, 11px);
    line-height: 1.5;
}


.info-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: #36d879;
    box-shadow:
        0 0 10px rgba(54, 216, 121, .5);
}


/* =====================================================
   USER PHOTO
   ===================================================== */

.user-photo {
    display: none;
    width: 55px;
    height: 55px;
    margin: 20px auto 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}


/* =====================================================
   FOOTER
   ===================================================== */

.login-footer {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: #444;
    font-size: clamp(8px, 2vw, 9px);
    letter-spacing: 1.5px;
}


/* =====================================================
   MOBILE (<= 500px)
   ===================================================== */

@media (max-width: 500px) {

    .login-card {
        padding: 35px 24px 28px;
        border-radius: 16px;
    }
}


/* =====================================================
   MOBILE KECIL (<= 360px)
   ===================================================== */

@media (max-width: 360px) {

    .login-card {
        padding: 28px 18px 22px;
        border-radius: 14px;
    }

    .login-page {
        padding: 20px 12px;
    }

    .brand {
        margin-bottom: 30px;
    }
}


/* =====================================================
   LANDSCAPE LOCK (HP diputar ke samping)
   Berlaku untuk semua resolusi HP dari iPhone 5 (568x320)
   sampai HP terbesar saat ini (~926px lebar landscape).
   max-height membedakan HP dari tablet/desktop, karena
   tablet landscape tingginya masih di atas 500px.
===================================================== */

@media (orientation: landscape) and (max-width: 926px) and (max-height: 500px) {

    .login-page {
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        padding: 18px 20px;
        overflow-y: auto;
    }

    .login-page::before,
    .login-page::after {
        width: 320px;
        height: 320px;
    }

    .login-page::before {
        top: -160px;
        right: -100px;
    }

    .login-page::after {
        bottom: -150px;
        left: -110px;
    }

    .login-card {
        padding: 20px 26px 18px;
        border-radius: 14px;
    }

    .brand {
        font-size: clamp(15px, 3vw, 19px);
        margin-bottom: 16px;
        letter-spacing: 2px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .login-label {
        font-size: clamp(8px, 1.6vw, 9px);
        margin-bottom: 6px;
    }

    .login-header h1 {
        font-size: clamp(18px, 4vw, 24px);
    }

    .login-desc {
        font-size: clamp(10px, 2vw, 11px);
        margin-top: 6px;
    }

    .google-login {
        height: 42px;
        font-size: clamp(11px, 2.2vw, 13px);
    }

    .login-divider {
        margin: 14px 0 12px;
        font-size: clamp(7px, 1.5vw, 8px);
    }

    .login-info {
        padding: 9px;
    }

    .login-info p {
        font-size: clamp(9px, 1.8vw, 10px);
    }

    .login-footer {
        position: static;
        margin-top: 14px;
        font-size: clamp(7px, 1.5vw, 8px);
    }

}