:root {
            --primary: #1f6f78;
            --secondary: #4fb286;
            --white: #ffffff;
            --soft-bg: #f4f8f7;
            --text-muted: #64748b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

       html, body {
    height: 100%; /* Penting agar body tahu tinggi maksimal layar */
    margin: 0;
}

body { 
    background-color: #f1f5f4; 
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column; /* Mengatur susunan elemen dari atas ke bawah */
    min-height: 100vh; /* Tinggi minimal adalah setinggi layar browser */
}

/* Pastikan container dashboard menyesuaikan lebar */
#dashboard-view {
    flex: 1 0 auto; /* Ini akan mendorong footer ke bawah jika konten sedikit */
    width: 100%;
    max-width: 1400px; /* Samakan dengan max-width container Anda */
    padding: 10px;
    margin: 0 auto; /* Pusatkan container */
}
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
        }

        /* Branding Luar Card */
        .brand-header {
            text-align: center;
            margin-bottom: 35px;
            max-width: 500px;
        }

        .brand-header h1 {
            color: var(--primary);
            font-weight: 800;
            font-size: 1.8rem;
            letter-spacing: -0.5px;
            margin-bottom: 12px;
        }

        .brand-header p {
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Card Login */
        .login-card {
            background: var(--white);
            width: 100%;
            max-width: 400px;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(31, 111, 120, 0.15);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.7);
        }

        .hero-section {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            padding: 45px 30px;
            text-align: center;
            color: var(--white);
        }

        .hero-section h2 {
            font-family: 'Amiri', serif;
            font-size: 2.8rem;
            margin-bottom: 5px;
            line-height: 1;
        }

        .hero-section p {
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .form-section {
            padding: 40px 35px;
        }

        .form-section h3 {
            color: var(--primary);
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 8px;
            text-align: center;
        }

        .form-section .sub-title {
            display: block;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-control {
            width: 100%;
            padding: 14px 18px;
            background: #f8fafc;
            border: 2px solid #f1f5f9;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.2s;
            outline: none;
        }

        .form-control:focus {
            border-color: var(--secondary);
            background: var(--white);
            box-shadow: 0 0 0 4px rgba(79, 178, 134, 0.1);
        }

        .btn-login {
            width: 100%;
            padding: 16px;
            background: var(--primary);
            color: var(--white);
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .btn-login:hover {
            background: #165158;
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(31, 111, 120, 0.3);
        }

        .btn-login:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
        }

        .back-link {
            display: block;
            text-align: center;
            margin-top: 25px;
            text-decoration: none;
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 500;
            transition: color 0.2s;
        }

        .back-link:hover {
            color: var(--primary);
        }

        .error-msg {
            background: #fff1f2;
            color: #e11d48;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.8rem;
            margin-bottom: 20px;
            text-align: center;
            border: 1px solid #ffe4e6;
            display: none;
        }

        .footer-copy {
    flex-shrink: 0; /* Mencegah footer menciut */
    text-align: center;
    font-size: .8rem;
    color: #90a4ae;
    padding: 20px 10px;
    background-color: #ffffff; /* Tambahkan background agar tidak tembus pola bg */
    border-top: 1px solid #e0e0e0;
    width: 100%;
}
.container {
  max-width: 1400px !important;
}


         @media (max-width: 768px) {
  body {
    zoom: 0.7;
  }
}


@media (max-width: 768px) {
  .main-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

        @media (max-width: 480px) {
            .brand-header h1 { font-size: 1.5rem; }
            .hero-section { padding: 35px 20px; }
        }