:root {
    --clr-bg-page-left: #dce8f5;
    --clr-bg-page-right: #2a4a72;
    --clr-card-left: #e8f2fb;
    --clr-card-right: #1e3a5f;
    --clr-primary: #1e3a5f;
    --clr-primary-hover: #163050;
    --clr-accent: #2563a8;
    --clr-border: #4a7ab5;
    --clr-text-dark: #0d1f35;
    --clr-text-white: #ffffff;
    --clr-text-muted: rgba(255, 255, 255, 0.85);
    --clr-link: #1e3a5f;
    --clr-input-border: #4a7ab5;
    --clr-btn-bg: #1e3a5f;
    --clr-btn-text: #ffffff;
    --clr-shadow: rgba(13, 31, 53, 0.22);
    --clr-back-btn-bg: #2563a8;
    --clr-icon: #4a7ab5;
    --clr-icon-hover: #0d1f35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right,
            var(--clr-bg-page-left) 50%,
            var(--clr-bg-page-right) 50%);
}

.login-card {
    width: 900px;
    height: 520px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to right,
            var(--clr-card-left) 50%,
            var(--clr-card-right) 50%);
    box-shadow: 0 25px 60px var(--clr-shadow);
}

.left {
    width: 50%;
    padding: 40px 30px 30px;
    color: var(--clr-text-dark);
    display: flex;
    flex-direction: column;
}

.left img {
    width: 230px;
}

.left h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.kang{
    font-size: 28px;
}

.teknologi{
    font-style: italic;
}

.left h4{
    font-size: 17px;
    margin-bottom: 17px;
}

.panjang{
    font-size: 15px;
}

.left p {
    font-size: 14px;
    opacity: 0.9;
}

.left::after {
    content: "";
    flex-grow: 1;
}

.slogan{
    align-self: center;
}

.text-yellow {
    color: #BE8E01;
    font-weight: 900;
    font-size: 14px;
}

.text-blue{
    color: #36599A;
    font-weight: 900;
    font-size: 14px;
}

.illustration {
    width: 500px;
    align-self: center;
    margin-top: 10px;
}

.right {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right h2 {
    margin-bottom: 20px;
    color: var(--clr-text-white);
}

.forget {
    text-decoration: none;
    color: var(--clr-link);
    margin-top: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-bottom: 2px solid var(--clr-input-border);
    color: var(--clr-text-white);
    background: transparent;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color:var(--clr-text-white)!important;
    transition: background 9999s ease-in-out 0s;
}

.right label {
    color: var(--clr-text-white);
}

input:focus {
    outline: none;
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--clr-btn-bg);
    color: var(--clr-btn-text);
    cursor: pointer;
    box-shadow: 0 8px 20px var(--clr-shadow);
    transition: all 0.3s ease;
}

button:hover {
    background: var(--clr-primary-hover);
}

.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--clr-back-btn-bg);
    color: var(--clr-text-white);
    font-size: 22px;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 8px 20px var(--clr-shadow);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.password-wrapper i {
    position: absolute;
    top: 40%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 25px;
    cursor: pointer;
    color: var(--clr-text-white);
}

.password-wrapper i:hover {
    color: var(--clr-text-muted);
}

.register {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--clr-text-white);
    font-size: 14px;
}

.register a {
    color: var(--clr-text-white);
    text-decoration: none;
    cursor: pointer;
}

.register a:hover {
    text-decoration: underline;
}

.mobile-logo {
    display: none;
}

.alamat {
    display: none;
}

.myswal {
    width: 500px;
}

@media (max-width: 768px) {

    .myswal{
        width: 300px;
    }

    body {
        padding: 0;
        /* background-color: var(--clr-card-left) !important; */
        background: 
                radial-gradient(
                circle at top,
                rgba(255, 255, 255, .18) 0%,
                transparent 35%), 
                linear-gradient(
                to bottom,
                #6f8fb8 0%,
                #5577a4 40%,
                #355784 75%,
                #1e3a5f 100%);
    }

    .login-card {
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        /* background: var(--clr-card-left) !important; */
        background: radial-gradient(circle at top,
                rgba(255, 255, 255, .18) 0%,
                transparent 35%), linear-gradient(to bottom,
                #6f8fb8 0%,
                #5577a4 40%,
                #355784 75%,
                #1e3a5f 100%);
    }

    /* sembunyikan branding kiri */
    .left {
        display: none !important;
    }

    /* form jadi full layar */
    .right {
        width: 100%;
        min-height: 100vh;
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        align-items: center;
        /* background: var(--clr-card-left) !important; */
        background: radial-gradient(circle at top,
                rgba(255, 255, 255, .18) 0%,
                transparent 35%), linear-gradient(to bottom,
                #6f8fb8 0%,
                #5577a4 40%,
                #355784 75%,
                #1e3a5f 100%);
    }

    /* logo tampil di atas form */
    .right .mobile-logo {
        display: block;
        width: 180px;
        margin-bottom: 30px;
    }

    .right h2 {
        font-size: 28px;
        text-align: center;
        margin-bottom: 30px;
        color: var(--clr-text-white);
    }

    .right label {
        color: var(--clr-text-white);
    }

    .register {
        color: var(--clr-text-white);
    }

    .register a {
        color: var(--clr-text-white);
    }

    .password-wrapper i {
        color: var(--clr-text-white);
    }

    .password-wrapper i:hover {
        color: var(--clr-text-white);
    }

    form {
        width: 100%;
        max-width: 350px;
    }

    input {
        margin-bottom: 25px;
    }

    button {
        width: 100%;
    }
}

/* ===== EXTRA SMALL (HP kecil < 380px) ===== */
@media (max-width: 380px) {
    .left {
        padding: 44px 16px 20px;
    }

    .left h1 {
        font-size: 19px;
    }

    .left img {
        width: 140px;
    }

    .right {
        padding: 28px 16px 36px;
    }

    .right h2 {
        font-size: 18px;
    }
}