﻿.login-page {
    all: unset;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e90ff, #00c896);
    font-family: Arial;
}

.login-page form {
    /* all: unset; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-page .login-box {
    /* all: unset; */
    background: white;
    padding: 40px;
    width: 320px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.login-page .login-title {
    /* all: unset; */
    font-size: 25px;
    font-family: sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-align: center;
}

.login-page .login-box input {
    all: unset;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-page .login-box input:read-only {
    background: lightgray;
    border-color: #a0a0a0;
    cursor: not-allowed;
}

.login-page .login-box button {
    all: unset;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #1e90ff;
    color: white;
    border: 1px solid #1e90ff;
    border-radius: 5px;
    cursor: pointer;
}

.login-page .login-box button:disabled {
    background: #a0a0a0;
    border-color: #a0a0a0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.login-page .login-box button:hover {
    background: #187bcd;
}

.login-version {
    text-align: center;
    margin-top: 35px;
    font-size: 10px;
    /*transform:scale(0.8);*/
    font-style: italic;
    font-weight: bold;
    color: dimgray;
}

.forgot-link {
    display: block;
    padding-bottom:5px;
    text-align: right;
    font-size: 10px; /* membuat lebih kecil */
    font-style:italic;
    margin-top: -10px; /* mendekatkan ke input password */
    margin-bottom: 10px; /* jarak ke tombol Sign in */
    color: #007bff; /* warna biru seperti link */
    text-decoration: none;
    cursor:pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* ============================
   RESPONSIVE LOGIN BOX
   ============================ */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .login-page .login-box {
        width: 80%; /* jauh lebih besar */
        height: auto; /* biar menyesuaikan isi */
        padding: 35px; /* sedikit lebih kecil padding */
    }

    .login-page .login-title {
        font-size: 24px;
    }
}

/* Handphone (≤ 480px) */
@media (max-width: 480px) {
    .login-page .login-box {
        width: 90%; /* hampir full screen */
        max-width: 380px; /* biar tetap proporsional */
        height: auto;
        padding: 30px;
    }

    .login-page .login-title {
        font-size: 22px;
    }

    .login-page .login-box input {
        padding: 12px;
        font-size: 16px; /* lebih nyaman untuk jempol */
    }

    .login-page .login-box button {
        padding: 12px;
        font-size: 16px;
    }
}
