@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins: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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('DASBOARD.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.app-title {
    font-size: 4rem;
    color: rgb(255, 174, 0);
    text-shadow: 1px 1px 0 #fcf7f7, 2px 2px 0 #333, 3px 3px 0 #666;
    margin-bottom: 20px;
    text-align: center;
}

.box {
    background: rgba(1, 180, 150, 0.5);
    width: 90%;
    max-width: 420px;
    padding: 30px 40px;
    color: white;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.2);
    backdrop-filter: blur(10px);
}

.box h1 {
    text-align: center;
    font-size: 35px;
}

.box .input-box {
    width: 100%;
    height: 50px;
    margin: 20px 0;
    position: relative;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    border: none;
    border-bottom: 2px solid white;
    color: rgb(255, 255, 255);
    font-size: 16px;
    padding: 5px 45px 5px 5px;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 16px;
    color: white;
    pointer-events: none;
    transition: .2s;
}

.box .input-box input:focus~label,
.box .input-box input:valid~label {
    font-size: .8rem;
    top: 15px;
    transform: translateY(-120%);
}

.box .input-box i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    cursor: pointer;
}

.box form {
    position: relative;
}

.box .extra {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 25px;
}

.extra label input {
    accent-color: white;
}

.extra a {
    color: white;
    text-decoration: none;
}

.extra a:hover {
    text-decoration: underline;
}

.box .btnLogin {
    width: 100%;
    height: 45px;
    background-color: white;
    outline: none;
    border: 2px solid white;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: .3s;
}

.box .btnLogin:hover {
    background: transparent;
    color: white;
}

.box .registrasi {
    text-align: center;
    font-size: 15px;
    margin: 30px 0 15px;
}

.registrasi a {
    color: red;
    text-decoration: none;
    font-weight: 600;
}

.registrasi a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    padding: 10px;
    
    
}

.footer p {
    margin: 0;
    color: #333333;
    font-size: 1
    4px;
}


.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 10px;
    text-decoration: none;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-icon:hover {
    background-color: #0056b3;
}

/* Style untuk wrapper tombol */
.back-to-home {
    text-align: center;
    margin-top: 20px;
}

/* Style untuk tombol */
.btnBack {
    background-color: #f44336; /* Warna latar belakang tombol */
    color: white; /* Warna teks tombol */
    padding: 10px 20px; /* Padding dalam tombol */
    font-size: 16px; /* Ukuran font */
    text-decoration: none; /* Menghilangkan garis bawah pada link */
    border-radius: 5px; /* Sudut tombol yang melengkung */
    transition: background-color 0.3s, transform 0.3s; /* Efek transisi saat hover */
}

/* Efek hover pada tombol */
.btnBack:hover {
    background-color: #45a049; /* Warna latar belakang saat hover */
    transform: scale(1.05); /* Membesarkan tombol sedikit saat hover */
}

/* Efek fokus pada tombol */
.btnBack:focus {
    outline: none; /* Menghilangkan outline standar saat fokus */
    box-shadow: 0 0 10px rgba(72, 255, 108, 0.5); /* Efek bayangan saat fokus */
}

.popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .popup-card {
        background: white;
        border-radius: 10px;
        padding: 20px;
        width: 350px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .popup-card img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .popup-close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #333;
    }

    .popup-card h2 {
        margin-top: 15px;
        font-size: 20px;
        color: #333;
    }

    .popup-card p {
        font-size: 14px;
        color: #555;
    }

    .popup-actions a {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .popup-actions a:hover {
        background-color: #0056b3;
    }

    .popup-overlay.active {
        visibility: visible;
        opacity: 1;
    }

/* Responsive Styles */
@media (max-width: 800px) {

    body {
        background: url('hp.jpg') no-repeat center center;
        background-size: cover;
        background-attachment: fixed;
    }

    .app-title {
        font-size: 2rem;
    }

    .box {
        width: 95%;
        padding: 20px;
    }

    .box h1 {
        font-size: 30px;
    }

    .input-box input {
        font-size: 14px;
    }

    .box .btnLogin {
        height: 40px;
        font-size: 14px;
    }

    .extra {
        flex-direction: column;
        align-items: flex-start;
    }

    .extra label {
        margin-bottom: 10px;
    }

    .extra a {
        margin-left: 0;
    }
}

@media (max-width: 600px) {

    body {
        background: url('hp.jpg') no-repeat center center;
        background-size: cover;
    }
    .app-title {
        font-size: 1.8rem;
    }

    .box {
        width: 100%;
        padding: 15px;
    }

    .box h1 {
        font-size: 26px;
    }

    .input-box input {
        font-size: 12px;
    }

    .box .btnLogin {
        height: 35px;
        font-size: 12px;
    }
}
