@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    animation: fadeInUp 0.8s ease-out;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.2);
    animation: fadeInUp 1s ease-out;
}

.form-container:hover {
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.3);
}

.form-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 500;
}

form input {
    width: 100%;
    padding: 12px;
    max-width: 337px; /* Batasi lebar maksimum */
    margin-bottom: 15px;
    border: 1.5px solid #cceeff;
    border-radius: 8px;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #00aaff;
    outline: none;
    background-color: #f9fcff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
    transition: 0.3s;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #00aaff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #008fcc;
}

.error {
    background-color: #ffe6e6;
    color: #cc0000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.success {
    background-color: #e6fff2;
    color: #007f33;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.link-info {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.link-info a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link-info a:hover {
    color: #008fcc;
}
.checkbox-wrapper {
    font-size: 14px;
    color: #333;
    margin: 15px 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-wrapper label::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #00aaff;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + label::before {
    background-color: #00aaff;
    border-color: #00aaff;
}

.checkbox-wrapper input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.checkbox-wrapper input[type="checkbox"]:checked {
    background-color: #00aaff;
    border-color: #00aaff;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    opacity: 1;
}

.checkbox-wrapper a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-wrapper a:hover {
    color: #008fcc;
}
/* Overlay saat loading */
.form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Spinner loading */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #cceeff;
    border-top: 5px solid #00aaff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
