@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #1b3a4b;
    overflow: hidden;
}

/* Laporan Kejadian di tengah atas */
.title {
    color: #d1f7c4;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px; /* Jarak dari container */
}

/* Container tetap di tengah */
.container {
    width: 90%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding-bottom: 30px;
    animation: moveShadowContainer 3s infinite alternate ease-in-out;
}

@keyframes moveShadowContainer {
    0% {
        box-shadow: 0px 0px 10px rgba(0, 255, 0, 1);
    }
    50% {
        box-shadow: 5px 5px 20px rgba(0, 255, 0, 0.2);
    }
    100% {
        box-shadow: -5px -5px 20px rgba(0, 255, 0, 0.7);
    }
}


/* Panic Button di tengah bawah */
#panicButton {
    display: block;
    margin-top: 20px; /* Jarak dari container */
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff4d4d, #cc0000); 
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 100px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7);
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    animation: moveShadowPanic 3s infinite alternate ease-in-out;
}

@keyframes moveShadowPanic {
    0% {
        box-shadow: 0px 0px 10px rgba(255, 77, 77, 1);
    }
    50% {
        box-shadow: 5px 5px 20px rgba(255, 77, 77, 0.2);
    }
    100% {
        box-shadow: -5px -5px 20px rgba(255, 77, 77, 0.7);
    }
}

#panicButton:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ff6666, #e60000); 
    box-shadow: 0 0 30px rgba(255, 102, 102, 0.9);
}

/* Background Animasi */
.background {
    position: absolute;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle, #1b3a4b 10%, #0f2a36 90%);
    z-index: -1;
}

.background::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://scontent.fcgk10-1.fna.fbcdn.net/v/t39.30808-6/482032895_28825611597054382_6755613487482621679_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=127cfc&_nc_ohc=ZkT5z5UW5REQ7kNvgHs54Bn&_nc_oc=AdhcsqggTfhABtY5KbjlcyLRB4y4kBQKQCM2lH3ITZKos-ECHVCiI7ylk0m9zL12n20&_nc_zt=23&_nc_ht=scontent.fcgk10-1.fna&_nc_gid=AmFgCbe8kgiT_WRh9Q0w0hi&oh=00_AYGr1jFru65u2C3WuF4IikbPDHcpynywYrR6cmLBCo4v7A&oe=67D80941') no-repeat center center;
    background-size: cover;
    opacity: 0.2; 
    filter: blur(5px);
}

.container {
    width: 90%;
    padding: 20px;
    height: auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    gap: 15px;
    padding-bottom: 30px; 
}

.button-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#registerForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Judul dengan ikon shield */
h2 {
    color: #d1f7c4; /* Hijau muda untuk kesan positif */
    font-size: 24px;
    margin-bottom: 15px;
}

/* Input Fields */
input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(209, 247, 196, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    outline: none;
    text-align: center;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #28a745, #218838);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(45deg, #218838, #28a745);
    transform: scale(1.05);
}

p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

a {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Animasi Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

.report-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; 
    /* margin-bottom: 5px; */
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
}

.report-btn {
    background-color: #1b3a4b;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    width: calc(50% - 5px); 
}

.report-btn span {
    display: block;
    font-size: 13px;
}

.report-btn img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.report-btn:hover {
    background-color: #0f2a36;
}

/* Styling untuk textarea dan tombol lainnya tetap sama */
textarea, input[type="file"], button {
    width: 100%;
    padding: 12px;
    margin: 0px 0px;
    border: 1px solid rgba(209, 247, 196, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    outline: none;
}

/* ... Existing CSS ... */

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 15% auto;
    padding: 20px;
    border-radius: 20px;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 1s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#panicButton {
    margin-top: 100px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff4d4d, #cc0000); 
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 100px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7);
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

#panicButton:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ff6666, #e60000); 
    box-shadow: 0 0 30px rgba(255, 102, 102, 0.9);
}

.user-title {
    text-align: center;
    color: #d1f7c4;
    font-size: 24px;
    margin-bottom: 15px;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding-inline: 20%;
    padding-block: 1%;
    border-radius: 10px;
    color: white;
    text-align: left;
    font-size: 12px;
}

.user-info p {
    margin: 10px 0;
}

.logout-btn {
    display: block;
    width: 50%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(45deg, #ff4d4d, #cc0000);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff6666, #e60000);
    transform: scale(1.05);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: white;
    transition: transform 0.2s, color 0.3s;
}

.nav-item:hover {
    transform: scale(1.1);
    color: #d1f7c4; /* Warna efek hover */
}

/* Auth Specific Styles */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.input-with-icon {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.input-with-icon input {
    padding-left: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.auth-btn {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: linear-gradient(45deg, #218838, #28a745);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-footer a {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 0.6s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: left;
}

