/* Below line is used for online Google font */
@import url(http://fonts.googleapis.com/css?family=Raleway);

h2 {
    background-color: #f2f2f8;
    padding: 30px 35px;
    margin: -10px -50px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

hr {
    margin: 10px -50px;
    border: 0;
    border-top: 1px solid #a96363;
    margin-bottom: 40px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Mengisi seluruh tinggi viewport */
  }

div.container {
    width: 900px;
    height: 610px;
    margin: 35px auto;
    font-family: 'Raleway', sans-serif;
}

div.main {
    width: 300px;
    padding: 10px 50px 25px;
    border: 2px solid gray;
    border-radius: 10px;
    font-family: raleway;
    float: left;
    margin-top: 50px;
}

input[type=text],
input[type=password] {
    width: 100%;
    height: 40px;
    padding: 5px;
    margin-bottom: 25px;
    margin-top: 5px;
    border: 2px solid #ccc;
    color: #4f4f4f;
    font-size: 16px;
    border-radius: 5px;
}

label {
    color: #464646;
    text-shadow: 0 1px 0 #fff;
    font-size: 14px;
    font-weight: bold;
}

center {
    font-size: 32px;
}

.note {
    color: red;
}

.valid {
    color: green;
}

.back {
    text-decoration: none;
    border: 1px solid rgb(0, 143, 255);
    background-color: rgb(0, 214, 255);
    padding: 3px 20px;
    border-radius: 2px;
    color: black;
}

input[type=button] {
    font-size: 16px;
    background: linear-gradient(#373736 5%, #c5cbe1 100%);
    border: 1px solid #aea897;
    color: #4E4D4B;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    padding: 10px 0;
    outline: none;
}

input[type=button]:hover {
    background: linear-gradient(#a2a2a1 5%, #171612 100%);
}

@media only screen and (max-width: 768px) {
    div.container {
        width: 100%;
        /* Set full width for smaller screens */
    }

    div.main {
        width: 80%;
        /* Adjust width for smaller screens */
        margin: 0 auto;
        /* Center the form horizontally */
    }

    input[type=text],
    input[type=password] {
        font-size: 14px;
        /* Adjust font size for smaller screens */
    }
}