/* =========================================================
   1. RESET BASIC & SYSTEM STYLES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* =========================================================
   2. BACKGROUND UTAMA (FOTO FULLSCREEN & PARALLAX WAVES)
   ========================================================= */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.7), rgba(15, 32, 67, 0.8)),
                url('/img/bener.jpeg') no-repeat center center / cover;
    /*background: linear-gradient(135deg, rgba(10, 25, 47, 0.7), rgba(15, 32, 67, 0.8)),
    url('https://app-gurindam.online/public/assets/images/bg.png') no-repeat center center / cover;*/
    background-attachment: fixed;
    padding: 20px 15px;
    overflow-x: hidden;
    position: relative;
}

/* Ornamen Waves Gelombang Transparan (Biru) */
.bg-wave-1, .bg-wave-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}
.bg-wave-1 {
    width: 320px;
    height: 320px;
    background: rgba(37, 99, 235, 0.25);
    top: -60px;
    left: -60px;
}
.bg-wave-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 150, 214, 0.25);
    bottom: -110px;
    right: -110px;
}

/* =========================================================
   3. CONTAINER UTAMA (REGISTER CARD COMPACT)
   ========================================================= */
.register-card {
    display: flex;
    width: 100%;
    max-width: 920px; /* Diperkecil agar pas di laptop 100% */
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================================
   4. BAGIAN KIRI (IDENTITAS DINAS) - TRANSPARAN & HOVER
   ========================================================= */
.register-left {
    flex: 0.95;
    padding: 28px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 32, 74, 0.2); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.register-left:hover {
    background: rgba(0, 32, 74, 0.85); 
    backdrop-filter: blur(16px);
}

.gov-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gov-logo-img {
    width: 38px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.gov-title h1 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
}
.gov-title p {
    font-size: 0.68rem;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.hero-info {
    margin: 16px 0;
}
.main-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
}
.main-title span {
    color: #38bdf8;
}
.sub-title {
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    line-height: 1.35;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}
.info-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.7);
}
.info-card h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
}
.info-card .description {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.requirements-box h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.requirements-box h4 i {
    color: #38bdf8;
}
.requirements-list {
    list-style: none;
}
.requirements-list li {
    font-size: 0.72rem;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}
.requirements-list li i {
    color: #00e676;
    font-size: 0.75rem;
    margin-top: 2px;
}

.left-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* =========================================================
   5. BAGIAN KANAN (FORM PENDAFTARAN) - TRANSPARAN & HOVER
   ========================================================= */
.register-right {
    flex: 1.25;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.register-right:hover {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(16px);
}

.form-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    transition: color 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.register-right:hover .form-header h3 {
    color: #0a192f;
    text-shadow: none;
}

.form-header p {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    transition: color 0.4s ease;
}
.register-right:hover .form-header p {
    color: #64748b;
}

/* =========================================================
   6. GRID FORM INPUT & CONTROL STYLING
   ========================================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    transition: color 0.4s ease;
}
.register-right:hover .input-group label {
    color: #1e293b;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input Text, Password, Email & Select */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 9px 36px 9px 36px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Opsi pada Dropdown Select */
.input-wrapper select option {
    background: #0f172a;
    color: #ffffff;
}

.register-right:hover .input-wrapper select option {
    background: #ffffff;
    color: #0f172a;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.register-right:hover .input-wrapper input,
.register-right:hover .input-wrapper select {
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.register-right:hover .input-wrapper input::placeholder {
    color: #94a3b8;
}

/* Icons styling */
.input-wrapper > i:first-child,
.input-wrapper > i.fa-solid:not([id]) {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.register-right:hover .input-wrapper > i {
    color: #94a3b8;
}

/* Icon Toggle Password (Mata) */
.input-wrapper i[id^="toggle"] {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.register-right:hover .input-wrapper i[id^="toggle"] {
    color: #64748b;
}

.input-wrapper i[id^="toggle"]:hover {
    color: #38bdf8 !important;
}

/* Hover & Focus State */
.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: #38bdf8 !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* =========================================================
   7. CHECKBOX TERMS & BUTTON SUBMIT
   ========================================================= */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0;
    font-size: 0.72rem;
    color: #ffffff;
    transition: color 0.4s ease;
}

.register-right:hover .terms-check {
    color: #475569;
}

.terms-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.terms-check a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}
.register-right:hover .terms-check a {
    color: #2563eb;
}

.btn-submit {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-submit i {
    transition: transform 0.3s ease;
}
.btn-submit:hover:not(:disabled) i {
    transform: translateX(5px);
}

.btn-submit .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer Login */
.login-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.4s ease;
}

.register-right:hover .login-footer {
    color: #64748b;
}

.login-footer a {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
}
.register-right:hover .login-footer a {
    color: #2563eb;
}
.login-footer a:hover {
    text-decoration: underline;
}

/* Shake Animation */
.shake-input {
    animation: shake 0.4s ease-in-out;
    border-color: #ef4444 !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =========================================================
   8. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 820px) {
    .register-card {
        flex-direction: column;
        max-width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .input-group.full-width {
        grid-column: span 1;
    }
    .register-left {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .register-right {
        padding: 20px;
    }
}