.register-btn.is-processing {
    opacity: 0.5;
    cursor: not-allowed;

    background-color: #cccccc;

    pointer-events: none;
}

html,
body {
    overflow: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE dan Edge lama */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Edge baru, Safari */
}

.register-container {
    width: auto !important;
    max-width: 90%;
    height: 100vh;
    max-height: 100%;
    text-align: center;
    background: var(--secondary-bg);
    border-radius: 0;
    box-shadow: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    transition: transform 0.3s ease-in-out;
    animation: fadeInScale 0.8s ease-out forwards;
    margin: 0;
    border-radius: 10px;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: var(--primary-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 5px;
    color: var(--primary-light);
}

.header-container h2,
.form-container h2,
h2 {
    color: var(--primary-light);
}
.error {
    /* color: #dc3545 !important; */
    color: var(--primary-light) !important;
    font-size: 0.9rem;
    border: none !important;
    text-align: left !important;
    font-style: italic;
}
.header-container img {
    width: 50px;
    /* Ukuran logo lebih kecil */
    margin-right: 15px;
    background-color: var(--primary-dark);
    border-radius: 10px;
}

.register-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: var(--primary-dark);
    color: var(--primary-light);
    border: 1px solid var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.register-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.7rem;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    box-shadow: var(--shadow-inset);
    font-size: 0.9rem;
    box-sizing: border-box;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-dark);
}

.form-group input.error,
.form-group select.error {
    color: red !important;
    padding: 10px !important;
    background-color: #fff3f4;
    border: none !important;
    /* Tambahkan latar belakang merah muda */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #e9e9e9;
}

.form-group.has-error label {
    color: #dc3545;
    /* Ubah warna label menjadi merah */
}

.form-group.has-error input.form-control.error {
    /* Ubah warna border input menjadi merah */
    background-color: #fff3f4;
    /* Tambahkan latar belakang merah muda */
}

/* Gaya untuk pesan kesalahan */
.help-block.error-message {
    color: #dc3545;
    /* Ubah warna teks pesan kesalahan menjadi merah */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Opsional: Tambahkan fokus yang jelas saat input dalam keadaan error */
.form-group.has-error input.form-control.error:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not(:placeholder-shown) + label {
    top: -12px;
    left: 0.5rem;
    color: var(--primary-light);
    padding: 0 0.5rem;
}

.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: -12px;
    left: 0.5rem;
    color: var(--primary-light);
    padding: 0 0.5rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-bg);
    background: transparent;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    z-index: 1000;
}

/* Aktifkan Modal */
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Konten Modal */
.modal-content {
    background-color: var(--primary-dark);
    color: var(--widget-color);
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 450px;
    overflow: hidden;
}
.modal-content p,
.modal-content li {
    color: #fff;
}

.modal-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

/* Efek saat modal aktif */
.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Header Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--primary-bg);
    color: #fff;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.close-modal-btn {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #eee;
    background: none;
    border: none;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--hover-bg);
}

/* Body Modal */
.modal-body {
    padding: 24px;
    line-height: 1.6;
    color: #fff;
    height: auto;
    max-height: 450px;
    overflow-y: scroll;
}

/* Footer Modal */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--primary-bg);
    color: #e3f2fd;
}

/* Gaya tombol */
.modal-btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.modal-btn.close:hover {
    background-color: var(--hover-bg);
}

.modal-btn.close {
    border-color: var(--btn-error-color);
    background-color: var(--nav-bg);
    color: var(--btn-error-color);
}

.modal-btn.ok {
    border-color: var(--btn-error-color);
    background-color: var(--nav-bg);
    color: var(--btn-error-color);
}

.modal-btn.ok:hover {
    background-color: var(--hover-bg);
}
