@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    user-select: none;
    box-sizing: border-box;
}

body{
    font-family: "Roboto", sans-serif;
    background-image: url(../img/bg.jpg);
    background-position: center;
    width: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
    gap: 30px;
}

.halaman-logo {
    width: 120px;
    height: 120px;
}

.halaman-logo img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.halaman-judul {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.halaman-judul h1{
    width: 100%;
    background-color: #d92e27;
    color: white;
    font-size: 20px;
    padding: 10px;
    border-radius: 30px;
    
}

.halaman-judul p{
    font-size: 25px;
    padding: 10px;
    font-weight: 900;
    line-height: 1.9;
}

.halaman-judul span{
    font-size: 25px;
    padding: 10px;
    font-weight: 300;
    line-height: 1.9;
}

.form {
    background-color: #ffffffb6;
    width: 60%;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 10px 8px 20px rgba(255, 0, 0, 0.296);
}

.form h1 {
    margin-bottom: 25px;
    color: #d92e27;
    font-weight: 700;
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid black;
}

.halaman-form-aja {
    margin: 20px 0;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    gap: 20px; 
}

.halaman-form-aja label {
    width: 100px; 
    font-weight: 600;
    font-size: 17px;
    text-align: left;
}


.halaman-form-aja input, select {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1.5px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease;
    max-width: 100%;
}

.halaman-form-aja input:focus {
    border-color: #d92e27;
    outline: none;
}

.show-pass {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.button-page {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.button-page .masuk{
    width: 100%;
    padding: 10px;
    background-color: #16c510;
    border: 1px solid #16c510;
    color: white;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-page .back{
    width: 100%;
    padding: 10px;
    background-color: #d92e27;
    border: 1px solid #d92e27;
    color: white;
    border-radius: 20px;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-page .masuk:hover, .button-page .back:hover {
    border: 1px solid black;
    color: black;
    background-color: transparent;
}


.register-text {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
}

.register-text a {
    color: #d92e27;
    text-decoration: none;
    font-weight: 600;
}

.register-text a:hover {
  text-decoration: underline;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0; 
    right: 0; 
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0000007e;
    box-shadow: 0 -5px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.footer h1{
    font-weight: 500;
    color: #ffffff;
    font-size: 15px;
}

.footer p{
    font-weight: 8 00;
    font-size: 15px;
    color: #ffffff;
}


@media (max-width: 800px) {
    .halaman-logo {
        display: none;
    }

    .halaman-judul h1 {
        font-size: 17px;
        padding: 10px;
        border-radius: 20px;
    }

    .halaman-judul p,
    .halaman-judul span {
        font-size: 20px;
        padding: 5px;
    }

    .form {
        width: 90%;
        margin: 30px auto 0;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 5px 5px 15px rgba(255, 0, 0, 0.2);
    }

    .form h1 {
        font-size: 24px;
        padding-bottom: 8px;
    }
}


@media (max-width: 500px) {
    .footer h1{
        font-weight: 500;
        color: #ffffff;
        font-size: 12px;
    }

    .footer p{
        font-weight: 8 00;
        font-size: 12px;
        color: #ffffff;
    }
}

@media (max-width: 375px) {
    header {
        padding: 8px 15px;
        gap: 15px;
    }

    .halaman-judul h1 {
        font-size: 16px;
        padding: 8px;
        border-radius: 15px;
    }

    .halaman-judul p,
    .halaman-judul span {
        font-size: 18px;
        padding: 4px;
    }

    .form {
        width: 95%;
        margin: 20px auto 0;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 4px 4px 10px rgba(217, 46, 39, 0.3);
    }

    .form h1 {
        font-size: 22px;
        padding-bottom: 6px;
    }

    .halaman-form-aja {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .halaman-form-aja label {
        width: 100%;
        font-size: 15px;
        text-align: left;
    }

    .halaman-form-aja input {
        width: 100%;
        font-size: 14px;
    }

    .show-pass {
        justify-content: flex-start;
        margin-left: 100px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .button-page .masuk {
        font-size: 16px;
        padding: 12px 0;
        border-radius: 15px;
    }

    .register-text {
        font-size: 13px;
    }

    .footer h1{
        font-weight: 500;
        color: #ffffff;
        font-size: 12px;
    }

    .footer p{
        font-weight: 8 00;
        font-size: 12px;
        color: #ffffff;
    }
}

@media (max-width: 320px) {
    header {
        padding: 6px 10px;
        gap: 10px;
    }

    .halaman-judul h1 {
        font-size: 14px;
        padding: 6px;
        border-radius: 12px;
    }

    .halaman-judul p,
    .halaman-judul span {
        font-size: 16px;
        padding: 3px;
    }

    .form {
        width: 90%;
        margin: 15px auto 0;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 3px 3px 8px rgba(217, 46, 39, 0.25);
    }

    .form h1 {
        font-size: 20px;
        padding-bottom: 5px;
    }

    .halaman-form-aja {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .halaman-form-aja label {
        width: 100%;
        font-size: 14px;
    }

    .halaman-form-aja input {
        width: 100%;
        font-size: 13px;
        padding: 8px;
    }

    .show-pass {
        display: none;
    }

    .button-page .masuk {
        font-size: 14px;
        padding: 10px 0;
        border-radius: 12px;
    }

    .register-text {
        font-size: 12px;
    }

    .footer {
        flex-direction: column;
        gap: 4px;
        font-size: 5px;
        padding: 6px;
    }

    .footer h1{
        font-weight: 500;
        color: #ffffff;
        font-size: 11px;
    }

    .footer p{
        display: none;
    }
}