 :root {
     --primary-red: #CE1226;
     --bg-cream: #F1E5D1;
     --soft-white: #FAF9F6;
     --text-dark: #2D2D2D;
 }

 /* Auth Pages Styling */
 .auth-body {
     background-color: var(--soft-white);
     height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0;
 }

 .auth-container {
     display: flex;
     width: 100%;
     max-width: 1100px;
     height: 85vh;
     background: white;
     border-radius: 30px;
     overflow: hidden;
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
 }

 /* Sisi Info (Kiri) */
 .auth-side-info {
     flex: 1;
     background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?q=80&w=1000');
     background-size: cover;
     background-position: center;
     position: relative;
     padding: 60px;
     display: flex;
     align-items: flex-end;
     color: white;
 }

 .auth-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(to top, rgba(206, 18, 38, 0.8), transparent);
 }

 .auth-welcome-text {
     position: relative;
     z-index: 2;
 }

 .auth-logo {
     height: 40px;
     margin-bottom: 30px;
     filter: brightness(0) invert(1);
     /* Membuat logo jadi putih */
 }

 .auth-welcome-text h1 {
     font-size: 32px;
     margin-bottom: 15px;
     font-weight: 800;
 }

 /* Sisi Form (Kanan) */
 .auth-side-form {
     flex: 1;
     padding: 60px;
     overflow-y: auto;
     display: flex;
     align-items: center;
 }

 .form-wrapper {
     width: 100%;
 }

 .form-header h2 {
     font-size: 28px;
     color: var(--text-dark);
     margin-bottom: 10px;
 }

 .form-header p {
     color: #777;
     margin-bottom: 30px;
 }

 .form-header a {
     color: var(--primary-red);
     text-decoration: none;
     font-weight: 700;
 }

 .form-group {
     margin-bottom: 20px;
 }

 .form-group label {
     display: block;
     margin-bottom: 8px;
     font-weight: 600;
     font-size: 14px;
 }

 .form-group input {
     width: 100%;
     padding: 12px 10px;
     border: 2px solid #eee;
     border-radius: 12px;
     outline: none;
     transition: 0.3s;
 }

 .form-group input:focus {
     border-color: var(--primary-red);
 }

 .form-check {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     font-size: 13px;
     color: #666;
     margin-bottom: 25px;
 }

 .btn-auth {
     width: 100%;
     padding: 14px;
     background: var(--primary-red);
     color: white;
     border: none;
     border-radius: 12px;
     font-weight: 700;
     cursor: pointer;
     transition: 0.3s;
 }

 .btn-auth:hover {
     transform: translateY(-2px);
     box-shadow: 0 10px 20px rgba(206, 18, 38, 0.2);
 }

 .auth-divider {
     text-align: center;
     margin: 25px 0;
     position: relative;
 }

 .auth-divider::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 0;
     width: 100%;
     height: 1px;
     background: #eee;
     z-index: 1;
 }

 .auth-divider span {
     background: white;
     padding: 0 15px;
     color: #999;
     font-size: 13px;
     position: relative;
     z-index: 2;
 }

 .btn-google {
     width: 100%;
     padding: 12px;
     background: white;
     border: 2px solid #eee;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     cursor: pointer;
     font-weight: 600;
     transition: 0.3s;
 }

 .btn-google img {
     height: 20px;
 }

 /* Responsive */
 @media (max-width: 992px) {
     .auth-side-info {
         display: none;
     }

     .auth-container {
         max-width: 500px;
         height: auto;
     }

     .auth-side-form {
         padding: 40px;
     }
 }

 /* Pane Pilihan Kategori */
 .category-pane {
     display: flex;
     gap: 15px;
     margin-bottom: 25px;
 }

 .pane-item {
     flex: 1;
     cursor: pointer;
 }

 .pane-item input {
     display: none;
     /* Sembunyikan radio button asli */
 }

 .pane-box {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 15px;
     background: #f8f9fa;
     border: 2px solid #eee;
     border-radius: 15px;
     transition: 0.3s;
     font-weight: 700;
     font-size: 14px;
 }

 .pane-icon {
     font-size: 20px;
     margin-bottom: 5px;
 }

 .pane-item input:checked+.pane-box {
     border-color: var(--primary-red);
     background-color: rgba(206, 18, 38, 0.05);
     color: var(--primary-red);
 }

 /* Layout Baris untuk Nama Panggilan */
 .form-row {
     display: flex;
     gap: 15px;
 }

 .form-row .form-group {
     flex: 1;
 }

 .dynamic-fields {
     animation: fadeIn 0.4s ease;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @media (max-width: 480px) {
     .form-row {
         flex-direction: column;
         gap: 0;
     }
 }

 /* Media Query untuk Laptop/Desktop (Layar di atas 992px) */
 @media (min-width: 992px) {
     .form-header {
         /* Tambahkan padding top 10vh sesuai permintaan */
         padding-top: 20vh;
     }

     /* Memastikan form-wrapper tidak terlalu rapat ke bawah */
     .form-wrapper {
         padding-bottom: 50px;
     }

     /* Menghilangkan scrollbar pada form-side jika tidak diperlukan 
       agar tampilan lebih bersih di layar laptop */
     .auth-side-form::-webkit-scrollbar {
         width: 0;
         background: transparent;
     }
 }

 /* Responsivitas untuk layar kecil tetap terjaga */
 @media (max-width: 991px) {
     .form-header {
         padding-top: 0;
         /* Padding dihilangkan di HP agar hemat ruang */
     }
 }

 /* Khusus Gambar Background Login */
 .login-bg {
     background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1000');
 }

 /* Penyesuaian Header Login untuk Laptop */
 @media (min-width: 992px) {
     .login-header-pad {
         padding-top: 15vh;
         /* Sedikit lebih tinggi karena field login lebih sedikit */
         margin-bottom: 30px;
     }
 }

 /* Flexbox untuk Label dan Lupa Password */
 .label-flex {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 8px;
 }

 .forgot-link {
     font-size: 12px;
     color: var(--primary-red);
     text-decoration: none;
     font-weight: 600;
 }

 .forgot-link:hover {
     text-decoration: underline;
 }

 /* Styling Input Saat Fokus */
 .main-form input:focus {
     border-color: var(--primary-red);
     box-shadow: 0 0 0 4px rgba(206, 18, 38, 0.05);
 }

 /* Modal Lupa Password */
 .modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(5px);
     display: none;
     /* Hidden by default */
     align-items: center;
     justify-content: center;
     z-index: 10;
     padding: 20px;
 }

 .modal-content {
     background: white;
     width: 100%;
     max-width: 450px;
     padding: 40px;
     border-radius: 25px;
     position: relative;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
     animation: slideUp 0.4s ease;
 }

 .close-modal {
     position: absolute;
     top: 20px;
     right: 25px;
     font-size: 30px;
     color: #999;
     cursor: pointer;
     transition: 0.3s;
 }

 .close-modal:hover {
     color: var(--primary-red);
 }

 .modal-step {
     display: none;
 }

 .modal-step.active {
     display: block;
     animation: fadeIn 0.3s ease;
 }

 .auth-code-input input {
     letter-spacing: 5px;
     text-align: center;
     font-weight: 800;
     font-size: 18px;
 }

 @keyframes slideUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 body.swal2-shown {
     overflow: unset !important;
     padding-right: 0 !important;
 }