.login-wrapper { min-height: 100vh; }

/* === Carousel / Hero Section === */
.hero-carousel { position: relative; height: 100vh; overflow: hidden; }
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-carousel .carousel-indicators { z-index: 3; bottom: 8rem; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { z-index: 3; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}
.hero-text-bg {
    position: absolute;
    top: -100px;
    left: -100px;
    z-index: 3;
    width: 1000px;
    height: 650px;
    background: 
        radial-gradient(ellipse 60% 50% at 25% 35%, rgba(0,0,0,0.90) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 40% 55%, rgba(0,0,0,0.80) 0%, transparent 65%),
        radial-gradient(ellipse 45% 40% at 55% 30%, rgba(0,0,0,0.70) 0%, transparent 60%),
        radial-gradient(ellipse 35% 50% at 20% 65%, rgba(0,0,0,0.58) 0%, transparent 55%);
    filter: blur(45px);
    -webkit-filter: blur(45px);
    pointer-events: none;
}
.hero-content {
    position: absolute;
    top: 3rem;
    left: 3rem;
    z-index: 4;
    color: #fff;
    max-width: 400px;
}
.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}
.hero-accent {
    width: 50px;
    height: 3px;
    background: #198754;
    margin: 1rem 0;
}
.hero-content p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    max-width: 350px;
    line-height: 1.5;
}

/* Feature Bar */
.feature-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 3.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    padding: 0 0.85rem;
}
.feature-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.12);
}
.feature-item .f-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: #198754; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.3rem;
}
.feature-item .f-text h6 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.feature-item .f-text p { font-size: 0.75rem; opacity: 0.75; margin: 0; line-height: 1.4; overflow-wrap: break-word; }

/* === Form Section === */
.form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
    position: relative;
}
.form-section-scrollable {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}
.btn-bantuan {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 0.5rem;
    color: #198754;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.btn-bantuan:hover {
    background: rgba(25,135,84,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-color: rgba(25,135,84,0.3);
    text-decoration: none;
}
.btn-bantuan i { font-size: 0.9rem; }
.dot-pattern {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    pointer-events: none;
    z-index: 0;
}
.form-container {
    width: 100%;
    max-width: 400px;
}
.form-container .logo-icon img { height: 140px; }
.form-container .card-title { font-size: 1.15rem; color: #666; margin-top: 1rem; }
.form-container .card-brand { font-size: 1.6rem; font-weight: 700; color: #198754; }
.form-container .card-subtitle { font-size: 0.88rem; color: #999; margin-top: 0.25rem; }

.input-icon-wrapper {
    position: relative; margin-bottom: 1rem;
}
.input-icon-wrapper .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #adb5bd; font-size: 0.9rem; z-index: 5; pointer-events: none;
}
.input-icon-wrapper .form-control,
.input-icon-wrapper .form-select {
    padding-left: 42px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
}
.input-icon-wrapper .form-control:focus,
.input-icon-wrapper .form-select:focus,
#select_tahun_login:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25,135,84,0.15);
}

.captcha-wrapper {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.captcha-wrapper img { height: 48px; border-radius: 8px; border: 1px solid #dee2e6; }
.captcha-wrapper .btn-reload {
    width: 48px; height: 48px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}

.btn-masuk {
    background: #198754; border: none; color: #fff;
    height: 48px; border-radius: 8px; font-weight: 600;
}
.btn-masuk:hover { background: #157347; color: #fff; }
.btn-outline-custom {
    border: 1px solid #dee2e6; color: #333; background: #fff;
    height: 44px; border-radius: 8px; font-weight: 500;
}
.btn-outline-custom:hover { border-color: #198754; color: #198754; }
.divider-or {
    display: flex; align-items: center; gap: 1rem;
    margin: 1rem 0; color: #999; font-size: 0.8rem;
}
.divider-or::before, .divider-or::after {
    content: ''; flex: 1; height: 1px; background: #dee2e6;
}

.trust-badge {
    background: #f0faf4; border-radius: 8px; padding: 1rem;
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-top: 1.5rem;
}
.trust-badge .badge-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: #198754; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
}
.trust-badge h6 { font-size: 0.9rem; font-weight: 600; color: #198754; margin: 0; }
.trust-badge p { font-size: 0.8rem; color: #666; margin: 0; }

.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.75rem; color: #999; }

@media (max-width: 767.98px) {
    .hero-carousel { height: 50vh; min-height: 300px; }
    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item { height: 50vh; min-height: 300px; }
    .hero-carousel .carousel-item img { height: 50vh; min-height: 300px; }
    .hero-text-bg {
        top: 1.5rem;
        left: 1.5rem;
        width: 300px;
        height: 140px;
    }
    .hero-content {
        top: 1.5rem;
        left: 1.5rem;
        max-width: 280px;
    }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-accent { width: 35px; margin: 0.75rem 0; }
    .hero-content p { font-size: 0.85rem; }
    .feature-bar {
        position: relative;
        bottom: auto; left: auto; right: auto;
        margin: 1rem;
        border-radius: 10px;
    }
    .feature-item { gap: 0.75rem; padding: 0 0.5rem; }
    .feature-item .f-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .feature-item .f-text h6 { font-size: 0.8rem; }
    .feature-item .f-text p { font-size: 0.68rem; }
    .form-section, .form-section-scrollable { padding: 1rem; min-height: auto; max-height: none; overflow-y: visible; }
    .btn-bantuan { top: 0.75rem; right: 0.75rem; font-size: 0.75rem; padding: 0.4rem 0.75rem; }
}
@media (max-width: 991.98px) {
    .feature-bar { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1rem; }
    .feature-item { border-right: none; }
    .feature-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 575.98px) {
    .feature-bar { grid-template-columns: 1fr; padding: 0.75rem; gap: 0; }
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding: 0.75rem 0.5rem;
    }
    .feature-item:last-child { border-bottom: none; }
    .feature-item .f-icon { width: 36px; height: 36px; font-size: 0.95rem; flex-shrink: 0; }
    .feature-item .f-text h6 { font-size: 0.78rem; }
    .feature-item .f-text p { font-size: 0.65rem; }
}
@media (max-width: 374.98px) {
    .feature-bar { padding: 0.5rem; margin: 0.5rem; }
    .feature-item .f-icon { width: 32px; height: 32px; font-size: 0.85rem; }
    .feature-item .f-text h6 { font-size: 0.72rem; }
    .feature-item .f-text p { font-size: 0.6rem; }
}
