body {
    background-color: #f2f1f1;
    font-family: Quicksand;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    min-height: 100vh;
    margin: 0;
    background-image: url(img/bgPutih2.png);
    background-size: cover;
}

.login {
    position: relative;
    top: 1em;
    margin: auto;
}

.loggin {
    text-align: center;
    margin-top: -1em;
}

.loggin img {
    width: 200px;
}

.card {
    width: 350px;
    border: none;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    /* background: linear-gradient(45deg, #00c6ff, #0072ff); */
    background: #fff;
    /* padding: 20px; */
    border-bottom: none;
    text-align: center;
    margin-bottom: -20px;
    /* border-top: 1px solid #00c6ff; */
}

.card-header p {
    position: relative;
    top: 5px;
    color: #000;
    font-size: 16px;
}

.card-body {
    padding: 20px;
}

.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
}

.form-group {
    position: relative;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 40px;
    /* Space for icon */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    color: #aaa;
}

.form-group input:focus {
    border-color: #0072ff;
    box-shadow: none;
}

.form-group input:focus + i {
    color: #0072ff;
}

.invalid-feedback {
    font-size: 12px;
}

.btn-link {
    color: #0072ff;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.btn-link:hover {
    color: #035bc7;
    text-decoration: none;
}

.btn-primary {
    background: #0072ff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
    /* width: 100%; */
    margin-top: 10px;
    color: white;
}

.btn-primary:hover {
    background: #035bc7;
}

.back {
    position: relative;
    top: 1em;
    margin: auto;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    body {
        background-color: #f2f1f1;
        font-family: Quicksand;
        overflow-x: hidden; /* Prevents horizontal scrolling */
        min-height: 100vh;
        margin: 0;
        background-image: url(img/bgPutihMobile.png);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .loggin {
        text-align: center;
        margin-top: 1em;
    }

    .loggin img {
        width: 200px;
    }

    .card {
        width: 300px;
        border: none;
        border-radius: 20px;
        overflow: hidden;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    }
}

/* modal */ /* Gaya untuk modal */
.modal {
    display: none;
    /* Modal disembunyikan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.062);
    /* Warna latar belakang semi-transparan */
    z-index: 1000;
}

.modal-content {
    position: fixed;
    bottom: -100%;
    /* Posisi awal modal di bawah layar */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    /* Warna dengan transparansi */
    backdrop-filter: blur(40px);
    /* Efek blur untuk glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    /* Dukungan untuk Safari */
    padding: 20px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.301);
    /* Bayangan halus untuk efek mendalam */
    transition: bottom 0.4s ease;
    /* Animasi untuk perpindahan */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Garis luar yang halus */
}

.close-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

.open-btn {
    background-color: transparent;
    color: rgb(74, 142, 221);
    cursor: pointer;
}
