 /* ----- RESET & BASE (enhanced) ----- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(145deg, #0a337a 0%, #1565c0 45%, #42a5f5 100%);
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* subtle floating orbs */
        body::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 50%;
            top: -80px;
            right: -80px;
            pointer-events: none;
        }
        body::after {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 50%;
            bottom: -120px;
            left: -100px;
            pointer-events: none;
        }

        /* ----- MAIN CONTAINER (enhanced) ----- */
        .login-container {
            width: 100%;
            max-width: 1200px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border-radius: 40px;
            padding: 50px 50px 40px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(255,255,255,0.15);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        /* ----- LOGO & HEADER (enhanced) ----- */
        .logo img {
            width: 130px;
            margin-bottom: 18px;
            border-radius: 30px;
            box-shadow: 0 12px 28px rgba(11, 61, 145, 0.15);
            transition: transform 0.3s ease;
        }
        .logo img:hover {
            transform: scale(1.02);
        }

        h1 {
            color: #0b3d91;
            font-size: 42px;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        h1 i {
            color: #1565c0;
            font-size: 2rem;
        }

        .sub-head {
            color: #2c3e50;
            font-weight: 500;
            font-size: 1.2rem;
            margin-bottom: 6px;
            opacity: 0.8;
        }

        .description {
            color: #4a5b6b;
            margin-bottom: 25px;
            font-size: 1.05rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        /* ----- DYNAMIC CARDS (enhanced) ----- */
        .login-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 20px auto 30px;
            width: 100%;
        }

        .card {
            background: #ffffff;
            border-radius: 28px;
            padding: 30px 20px 28px;
            min-height: 280px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
            border: 1px solid rgba(0, 0, 0, 0.03);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
            position: relative;
            overflow: hidden;
        }

        /* subtle accent line */
        .card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #0b3d91, #42a5f5);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .card:hover::after {
            opacity: 1;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 28px 50px rgba(11, 61, 145, 0.12);
            border-color: rgba(11, 61, 145, 0.08);
        }

        .icon {
            font-size: 70px;
            color: #0b3d91;
            margin-bottom: 8px;
            transition: transform 0.3s ease;
            display: inline-flex;
            background: rgba(11, 61, 145, 0.04);
            padding: 18px;
            border-radius: 50%;
            width: 110px;
            height: 110px;
            justify-content: center;
            align-items: center;
        }
        .card:hover .icon {
            transform: scale(1.02) translateY(-3px);
            background: rgba(11, 61, 145, 0.07);
        }

        .card h2 {
            color: #0b3d91;
            font-weight: 700;
            font-size: 1.7rem;
            margin: 10px 0 6px;
            letter-spacing: -0.3px;
        }

        .card .role-desc {
            color: #5a6f82;
            font-size: 0.95rem;
            margin-bottom: 18px;
            line-height: 1.5;
            min-height: 44px;
            padding: 0 6px;
        }

        .card a {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #0b3d91;
            color: #fff;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 60px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.25s ease;
            box-shadow: 0 6px 18px rgba(11, 61, 145, 0.15);
            border: 1px solid transparent;
            margin-top: 4px;
        }

        .card a i {
            font-size: 1rem;
            transition: transform 0.2s;
        }
        .card a:hover {
            background: #1565c0;
            transform: scale(1.02);
            box-shadow: 0 12px 28px rgba(11, 61, 145, 0.25);
        }
        .card a:hover i {
            transform: translateX(4px);
        }

        /* individual card color variations */
        .card.admin .icon { color: #0b3d91; background: rgba(11, 61, 145, 0.06); }
        .card.teacher .icon { color: #2a7d4f; background: rgba(42, 125, 79, 0.06); }
        .card.student .icon { color: #b45a1c; background: rgba(180, 90, 28, 0.06); }
        .card.parent .icon { color: #8a3b8a; background: rgba(138, 59, 138, 0.06); }

        .card.admin a { background: #0b3d91; }
        .card.teacher a { background: #1e7e34; }
        .card.student a { background: #c9712b; }
        .card.parent a { background: #7d3c7d; }

        .card.admin a:hover { background: #0f4ba8; }
        .card.teacher a:hover { background: #218c3a; }
        .card.student a:hover { background: #d97d2e; }
        .card.parent a:hover { background: #914491; }

        /* ----- BACK & FOOTER (enhanced) ----- */
        .back-row {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin: 12px 0 6px;
        }
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #0b3d91;
            text-decoration: none;
            font-weight: 500;
            font-size: 1.05rem;
            padding: 8px 16px;
            border-radius: 60px;
            transition: all 0.2s;
            background: rgba(11, 61, 145, 0.04);
        }
        .back-btn i {
            transition: transform 0.2s;
        }
        .back-btn:hover {
            background: rgba(11, 61, 145, 0.08);
            text-decoration: none;
            color: #0a337a;
        }
        .back-btn:hover i {
            transform: translateX(-4px);
        }

        .footer {
            margin-top: 30px;
            color: #6a7d8e;
            font-size: 0.95rem;
            border-top: 1px solid rgba(0,0,0,0.04);
            padding-top: 24px;
            display: flex;
            justify-content: center;
            gap: 28px;
            flex-wrap: wrap;
        }
        .footer span {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .footer i {
            color: #0b3d91;
            opacity: 0.5;
        }

        /* ----- RESPONSIVE (enhanced) ----- */
        @media (max-width: 992px) {
            .login-container {
                padding: 38px 30px;
                border-radius: 32px;
            }
            .login-cards {
                gap: 24px;
            }
            .icon {
                width: 90px;
                height: 90px;
                font-size: 58px;
            }
            h1 {
                font-size: 34px;
            }
        }

        @media (max-width: 768px) {
            .login-container {
                padding: 28px 18px;
                border-radius: 28px;
            }
            .logo img {
                width: 100px;
            }
            h1 {
                font-size: 28px;
            }
            .sub-head {
                font-size: 1rem;
            }
            .description {
                font-size: 0.95rem;
                padding: 0 6px;
            }
            .login-cards {
                gap: 20px;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }
            .card {
                min-height: 230px;
                padding: 22px 16px 20px;
            }
            .card h2 {
                font-size: 1.4rem;
            }
            .icon {
                width: 76px;
                height: 76px;
                font-size: 48px;
                padding: 12px;
            }
            .card a {
                padding: 12px 26px;
                font-size: 0.9rem;
            }
            .footer {
                flex-direction: column;
                gap: 8px;
                font-size: 0.85rem;
            }
            .back-row {
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .login-container {
                padding: 20px 12px;
                border-radius: 24px;
            }
            .login-cards {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .card {
                min-height: 200px;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                padding: 18px 14px;
            }
            .card .icon {
                width: 64px;
                height: 64px;
                font-size: 38px;
                margin-bottom: 0;
            }
            .card .card-content {
                flex: 1;
                min-width: 140px;
                text-align: left;
            }
            .card .role-desc {
                min-height: auto;
                font-size: 0.85rem;
                margin-bottom: 10px;
            }
            .card a {
                padding: 10px 22px;
                font-size: 0.85rem;
            }
            h1 {
                font-size: 24px;
            }
            .sub-head {
                font-size: 0.9rem;
            }
            .description {
                font-size: 0.85rem;
                margin-bottom: 16px;
            }
            .footer span {
                font-size: 0.75rem;
            }
        }