/* ===== LANDING PAGE — NGJIKOLEKTIF-INSPIRED TWO-COLUMN LAYOUT ===== */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent: #d4a843;
    --accent-light: #e9c46a;
}

/* --- Full-screen gradient background --- */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Islamic pattern overlay (subtle) */
.islamic-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animated ambient glow */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(82, 183, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(27, 67, 50, 0.15) 0%, transparent 50%);
    animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

/* --- Main container: two-column grid --- */
.landing-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* --- LEFT COLUMN: Panduan / Brand --- */
.panduan-section {
    color: #fff;
}
.panduan-section .brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.panduan-section .brand-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.panduan-section .brand h2 {
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    line-height: 1.2;
}
.panduan-section .brand p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}
.panduan-section .tagline {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.92;
    line-height: 1.6;
}

/* Feature items (glass-morphism cards) */
.panduan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.panduan-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}
.panduan-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}
.panduan-features .feature-icon {
    font-size: 1.2rem;
    color: #d4edda;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
    margin-top: 0.1rem;
}
.panduan-features .feature-text h6 {
    margin: 0 0 0.1rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #fff;
}
.panduan-features .feature-text small {
    font-size: 0.78rem;
    opacity: 0.78;
    color: #e9ecef;
    display: block;
    line-height: 1.45;
}

.panduan-section .cta-text {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    opacity: 0.65;
    text-align: center;
    line-height: 1.5;
}

/* --- RIGHT COLUMN: Auth Card --- */
.auth-card-outer {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Auth card header */
.auth-card-header {
    text-align: center;
    padding: 2rem 1.5rem 0.5rem;
}
.auth-card-header .brand-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.auth-card-header h3 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.auth-card-header p {
    color: #6c757d;
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Auth card body */
.auth-card-body {
    padding: 1.25rem 1.5rem 0.75rem;
}

/* Auth card footer */
.auth-card-footer {
    text-align: center;
    padding: 0.25rem 1.5rem 1.5rem;
    font-size: 0.85rem;
}

/* --- Form elements inside white card --- */
.auth-card .form-label {
    color: #495057;
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}
.auth-card .input-group-text {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-right: none;
    color: #6c757d;
    border-radius: 0.5rem 0 0 0.5rem;
}
.auth-card .form-control,
.auth-card .form-select {
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: all 0.2s ease;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.auth-card .input-group .form-control,
.auth-card .input-group .form-select {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}
.auth-card .input-group .form-control:focus,
.auth-card .input-group .form-select:focus {
    border-left: none;
}
.auth-card .form-control::placeholder {
    color: #adb5bd;
}
.auth-card .form-select option {
    color: #212529;
    background: #fff;
}

/* Custom checkbox */
.auth-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.auth-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
    border-color: var(--primary);
}

/* Buttons */
.auth-card .btn-auth {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.auth-card .btn-auth.btn-login {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}
.auth-card .btn-auth.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35);
}
.auth-card .btn-auth.btn-secondary-action {
    background: #f1f3f5;
    color: #495057;
    border: 1.5px solid #dee2e6;
}
.auth-card .btn-auth.btn-secondary-action:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* --- Links inside card --- */
.auth-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.auth-card .text-muted {
    color: #6c757d !important;
}

/* --- Toggle links (outside card) --- */
.auth-toggle-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.auth-toggle-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.auth-toggle-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Form transitions --- */
.auth-card form {
    transition: all 0.3s ease;
}
.auth-card form:not(.d-none) {
    animation: formSlide 0.3s ease-out;
}
@keyframes formSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- WhatsApp link (bottom-right fixed) --- */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 52px;
    height: 52px;
    background: rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.whatsapp-fab:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.3);
}
.whatsapp-fab img {
    width: 26px;
    height: 26px;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .panduan-section .brand {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .panduan-section .tagline {
        text-align: center;
        font-size: 0.92rem;
    }
    .panduan-section .cta-text {
        display: none;
    }
    .landing-wrapper {
        padding: 1.25rem 0.75rem;
    }
    .auth-card {
        max-width: 100%;
    }
    .auth-card-header {
        padding: 1.5rem 1rem 0.25rem;
    }
    .auth-card-header h3 {
        font-size: 1.3rem;
    }
    .auth-card-body {
        padding: 1rem 1rem 0.5rem;
    }
    .auth-card-footer {
        padding: 0.25rem 1rem 1.25rem;
    }
    .auth-toggle-links {
        gap: 0.4rem;
    }
    .auth-toggle-link {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
    .whatsapp-fab {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    .whatsapp-fab img {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .landing-grid {
        gap: 1.5rem;
    }
    .panduan-features .feature-item {
        padding: 0.7rem 0.85rem;
    }
}

/* ===== TABLET / MOBILE FIXES ===== */
@media (max-width: 991.98px) {
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .panduan-section {
        padding: 1.5rem;
    }
    .auth-card-outer {
        max-width: 100%;
    }
    .auth-card {
        padding: 1.5rem;
    }
    .brand h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .landing-wrapper {
        padding: 1rem;
    }
    .panduan-features {
        grid-template-columns: 1fr;
    }
    .feature-item {
        padding: 0.6rem;
    }
    .auth-card-header h3 {
        font-size: 1.2rem;
    }
    .btn-auth {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }
    .whatsapp-fab {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
}
