        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        :root {
            --primary: #2563EB;
            --primary-dark: #1D4ED8;
            --accent: #3B82F6;
            --success: #10B981;
            --bg-page: #F0F4FF;
            --bg-card: #FFFFFF;
            --text-main: #1E293B;
            --text-muted: #64748B;
            --border: #E2E8F0;
            --tab-active: #2563EB;
            --tab-inactive: #94A3B8;
            --radius-card: 20px;
            --radius-input: 12px;
            --shadow-card: 0 8px 32px rgba(37, 99, 235, .10);
        }

        body {
            font-family: 'Prompt', sans-serif;
            background: var(--bg-page);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 16px;
            background-image:
                radial-gradient(ellipse at 10% 20%, rgba(37, 99, 235, .08) 0%, transparent 55%),
                radial-gradient(ellipse at 90% 80%, rgba(59, 130, 246, .07) 0%, transparent 55%);
        }

        /* ===== WRAPPER ===== */
        .page-wrapper {
            width: 100%;
            max-width: 1140px;
        }

        /* ===== CARD SHARED ===== */
        .panel-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            box-shadow: var(--shadow-card);
            padding: 40px 40px 36px;
            height: 100%;
        }

        /* ===== LOGIN PANEL ===== */
        .login-logo {
            width: 80px;
            margin-bottom: 18px;
        }

        .login-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.5;
            margin-bottom: 0;
        }

        .login-subtitle {
            font-size: .92rem;
            font-weight: 400;
            color: var(--text-muted);
            margin-bottom: 28px;
        }

        /* Tabs */
        .student-tabs {
            display: flex;
            gap: 0;
            border-radius: 12px;
            background: #EFF6FF;
            padding: 4px;
            margin-bottom: 28px;
        }

        .student-tabs .tab-btn {
            flex: 1;
            border: none;
            background: transparent;
            padding: 9px 0;
            border-radius: 9px;
            font-family: 'Prompt', sans-serif;
            font-size: .88rem;
            font-weight: 500;
            color: var(--tab-inactive);
            cursor: pointer;
            transition: all .22s ease;
        }

        .student-tabs .tab-btn.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 3px 10px rgba(37, 99, 235, .28);
        }

        .student-tabs .tab-btn i {
            margin-right: 5px;
        }

        /* Form */
        .form-label {
            font-size: .82rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 6px;
        }

        .form-control {
            border-radius: var(--radius-input);
            border: 1.5px solid var(--border);
            font-family: 'Prompt', sans-serif;
            font-size: .88rem;
            padding: 11px 16px;
            color: var(--text-main);
            transition: border-color .2s, box-shadow .2s;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
            outline: none;
        }

        .form-control::placeholder {
            color: #B0BDD6;
        }

        .hint-text {
            font-size: .76rem;
            color: var(--text-muted);
            text-align: center;
            margin-top: 5px;
        }

        /* Login button */
        .btn-login {
            width: 100%;
            padding: 13px;
            border-radius: var(--radius-input);
            background: var(--primary);
            color: #fff;
            font-family: 'Prompt', sans-serif;
            font-size: .95rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: background .2s, transform .15s, box-shadow .2s;
            box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
            margin-top: 8px;
        }

        .btn-login:hover {
            background: var(--primary-dark);
            box-shadow: 0 6px 20px rgba(37, 99, 235, .32);
            transform: translateY(-1px);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        /* Staff link */
        .staff-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 18px;
            font-size: .82rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: color .2s;
        }

        .staff-link:hover {
            color: var(--primary);
        }

        .staff-link i {
            font-size: 1rem;
        }

        /* Tab pane */
        .tab-content-pane {
            display: none;
        }

        .tab-content-pane.active {
            display: block;
        }

        /* New student note */
        .new-student-note {
            background: #F0FDF4;
            border: 1.5px solid #86EFAC;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: .82rem;
            color: #166534;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .new-student-note i {
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        /* ===== NEWS PANEL ===== */
        .news-panel-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            box-shadow: var(--shadow-card);
            padding: 32px 32px 20px;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .news-header-icon {
            width: 36px;
            height: 36px;
            background: #EFF6FF;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1rem;
            flex-shrink: 0;
        }

        .news-header-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            margin: 0;
        }

        .news-header-sub {
            font-size: .75rem;
            color: var(--text-muted);
            margin: 0;
        }

        /* News list */
        .news-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
            flex: 1;
            overflow-y: auto;
        }

        .news-card {
            display: flex;
            gap: 14px;
            border-radius: 14px;
            border: 1.5px solid var(--border);
            padding: 12px 14px;
            cursor: pointer;
            transition: box-shadow .2s, border-color .2s, transform .18s;
            text-decoration: none;
            color: inherit;
            background: #FAFCFF;
        }

        .news-card:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 18px rgba(37, 99, 235, .10);
            transform: translateY(-2px);
        }

        .news-thumb {
            width: 78px;
            height: 72px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            background: #E2E8F0;
        }

        .news-thumb-placeholder {
            width: 78px;
            height: 72px;
            border-radius: 10px;
            flex-shrink: 0;
            background: linear-gradient(135deg, #DBEAFE 0%, #BAE6FD 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.4rem;
        }

        .news-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .news-badge {
            display: inline-block;
            font-size: .68rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 20px;
            margin-bottom: 5px;
        }

        .news-badge.new {
            background: #FEF3C7;
            color: #92400E;
        }

        .news-badge.important {
            background: #FEE2E2;
            color: #991B1B;
        }

        .news-badge.general {
            background: #F0FDF4;
            color: #166534;
        }

        .news-headline {
            font-size: .85rem;
            font-weight: 600;
            color: var(--text-main);
            margin: 0 0 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.45;
        }

        .news-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: .73rem;
            color: var(--text-muted);
        }

        .news-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .news-meta i {
            font-size: .8rem;
        }

        /* View all */
        .view-all-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 18px;
            padding: 10px;
            border-radius: 10px;
            border: 1.5px dashed var(--border);
            color: var(--primary);
            font-size: .82rem;
            font-weight: 500;
            text-decoration: none;
            transition: background .2s, border-color .2s;
        }

        .view-all-btn:hover {
            background: #EFF6FF;
            border-color: var(--primary);
        }

        /* ===== VALIDATION ===== */
        .form-control.is-error {
            border-color: #EF4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, .13) !important;
            background: #FFF5F5;
        }

        .form-control.is-error:focus {
            border-color: #DC2626 !important;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, .18) !important;
        }

        .field-error-msg {
            display: none;
            align-items: center;
            gap: 5px;
            font-size: .76rem;
            color: #DC2626;
            margin-top: 5px;
            font-weight: 500;
        }

        .field-error-msg.show {
            display: flex;
        }

        .field-error-msg i {
            font-size: .82rem;
            flex-shrink: 0;
        }

        /* shake animation on submit fail */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-6px);
            }

            40% {
                transform: translateX(6px);
            }

            60% {
                transform: translateX(-4px);
            }

            80% {
                transform: translateX(4px);
            }
        }

        .shake {
            animation: shake .35s ease;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {

            .panel-card,
            .news-panel-card {
                padding: 28px 22px;
            }

            .student-tabs .tab-btn {
                font-size: .8rem;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 16px 10px;
            }

            .news-thumb,
            .news-thumb-placeholder {
                width: 60px;
                height: 58px;
            }
        }



