/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #e6f3ff, #e0f7e9, #d1e8ff, #e0f7e9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

/* Animasi */
@keyframes gradientBG {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Kontainer dan Modal */
.login-container,
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.login-container .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    border: 2px solid #1e88e5;
    padding: 5px;
    background: #fff;
}

.login-container h1,
.modal-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e88e5;
    margin-bottom: 1.5625rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.3125rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.875rem;
    color: #444;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.4);
}

/* Tombol */
.login-btn,
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background: linear-gradient(90deg, #1e88e5, #43a047);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-btn:hover,
.submit-btn:hover {
    background: linear-gradient(90deg, #1565c0, #2d6b31);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.login-btn:active,
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Link dan Footer */
.links {
    margin-top: 0.625rem;
}

.link {
    font-size: 0.875rem;
    color: #1e88e5;
    text-decoration: none;
    display: block;
    margin: 0.3125rem 0;
    transition: color 0.3s ease;
}

.link:hover {
    text-decoration: underline;
    color: #1565c0;
}

.footer {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #666;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container,
    .modal-content {
        padding: 1.25rem;
        max-width: 90%;
    }

    .login-container .logo {
        width: 60px;
        height: 60px;
    }

    .login-container h1,
    .modal-content h1 {
        font-size: 1.5rem;
    }
}