@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 300px;
    width: 300px;
    color: #555;
}

.container h1 {
    margin-block: auto;
    color: #000;
}

.container h2 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #333;
}
.container input {
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.container button {
    font-family: 'Kanit', sans-serif;
    font-size: large;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem;
    background-color: rgb(153, 51, 255);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.container button:hover {
    background-color: rgb(122, 41, 204);
}

input[type='text']:focus,
input[type='password']:focus {
    outline: 1px solid rgb(153, 51, 255);
}

@media (prefers-color-scheme: dark) {
    /* If the operating system is using dark mode, then apply this CSS */
    body {
        background-color: #121212;
    }
    .container {
        background-color: #282828;
        box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
        color: #aaa;
    }

    .container h1 {
        color: #fff;
    }
    .container h2 {
        color: #ccc;
    }

    .container input {
        background-color: #282828;
        color: #fff;
        border-color: #575757;
    }
}
