body {
    font-family: Arial, sans-serif;
    /* background-color: #f4f7fc; */
    background-image: url('/cbt/static/img/bg.png');
    background-size: cover;      /* Agar gambar menutupi seluruh layar */
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
}

.form-container {
    width: 500px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container-signup {
    width: 500px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Untuk select (dropdown) dan radio/checkbox agar serasi dengan input lainnya */
select,
input[type="radio"],
input[type="checkbox"] {
    margin: 5px 0;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    background: #fafbfc;
    transition: border-color 0.2s;
}

select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Untuk label radio/checkbox agar rapi */
.form-group label input[type="radio"],
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Agar label radio/checkbox tetap satu baris dengan teks */
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-bottom: 5px;
}

/* Jika ingin radio/checkbox horizontal */
.radio-inline,
.checkbox-inline {
    display: inline-block;
    margin-right: 18px;
}



.form-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.form-logo img {
    max-width: 200px;
    max-height: 200px;
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}


/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* BUTTON */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */


button {
    /* width: 100%; */
    
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Variations for Button Colors */
.button-primary {
    background-color: #007BFF; /* Blue */
}

.button-primary:hover {
    background-color: #0056b3;
}

.button-secondary {
    background-color: #6c757d; /* Grey */
}

.button-secondary:hover {
    background-color: #5a6268;
}

.button-success {
    background-color: #28a745; /* Green */
}

.button-success:hover {
    background-color: #218838;
}

.button-danger {
    background-color: #dc3545; /* Red */
}

.button-danger:hover {
    background-color: #c82333;
}

.button-warning {
    background-color: #ffc107; /* Yellow */
    color: #212529;
}

.button-warning:hover {
    background-color: #e0a800;
}

/* Variations for Button Sizes */
.button-small {
    padding: 6px 12px;
    font-size: 14px;
}

.button-medium {
    padding: 10px 18px;
    font-size: 16px;
}

.button-large {
    padding: 14px 24px;
    font-size: 18px;
}

p {
    text-align: center;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Alert Container */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Alert Container */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Alert Box */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    overflow: hidden;
}

/* Alert Types */
.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #333;
}

.alert-info {
    background-color: #17a2b8;
}

/* Progress Bar */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

/* Animations */
@keyframes progressBar {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}
