        *,
        *::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;
            }
        }


         /* ===== DESKTOP/TABLET HORIZONTAL TIMELINE ===== */
 .tl-wrap {
    background: #fff;
    padding: 0 20px;
    height: 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
  }

  .tl-inner {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center
  }

  /* Track line */
  .tl-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 0
  }

  .tl-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #2a7de1, #43a8c8);
    transition: width .4s ease
  }

  /* Steps container */
  .tl-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1
  }

  .tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer
  }

  /* Node */
  .tl-node {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e0e0e0;
    background: #fff;
    transition: all .25s ease;
    position: relative;
    z-index: 2
  }

  .tl-node i {
    font-size: 13px;
    color: #bbb;
    transition: color .25s
  }

  .tl-step.done .tl-node {
    border-color: #2a7de1;
    background: #2a7de1
  }

  .tl-step.done .tl-node i {
    color: #fff
  }

  .tl-step.active .tl-node {
    border-color: #2a7de1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 125, 225, .18)
  }

  .tl-step.active .tl-node i {
    color: #2a7de1
  }

  .tl-step.pending .tl-node {
    border-color: #e0e0e0;
    background: #f5f5f5
  }

  .tl-step.pending .tl-node i {
    color: #c8c8c8
  }

  /* Label */
  .tl-label {
    position: absolute;
    top: calc(50% + 22px);
    width: 90px;
    text-align: center;
    font-size: 10px;
    line-height: 1.3;
    color: #888;
    white-space: normal;
    left: 50%;
    transform: translateX(-50%)
  }

  .tl-label .tl-title {
    font-weight: 600;
    color: #555;
    display: block;
    font-size: 9.5px
  }

  .tl-label .tl-date {
    color: #aaa;
    font-size: 9px;
    display: block;
    margin-top: 1px
  }

  .tl-step.done .tl-label .tl-title {
    color: #2a7de1
  }

  .tl-step.active .tl-label .tl-title {
    color: #2a7de1;
    font-weight: 700
  }

  /* Above label (alternate for crowded steps) */
  .tl-step.above .tl-label {
    top: auto;
    bottom: calc(50% + 22px)
  }

  /* ===== MOBILE VERTICAL TIMELINE ===== */
  .tl-mobile {
    display: none;
    background: #fff;
    height: 200px;
    overflow: hidden;
    position: relative
  }

  .tl-mobile-inner {
    overflow-y: auto;
    height: 200px;
    padding: 8px 16px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    user-select: none
  }

  .tl-mobile-inner:active {
    cursor: grabbing
  }

  .tl-mobile-inner::-webkit-scrollbar {
    display: none
  }

  .tl-v-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px
  }

  .tl-v-track {
    position: absolute;
    left: 27px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #e0e0e0;
    z-index: 0
  }

  .tl-v-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, #2a7de1, #43a8c8);
    transition: height .3s ease
  }

  .tl-v-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    position: relative;
    z-index: 1
  }

  .tl-v-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
    transition: all .25s
  }

  .tl-v-node i {
    font-size: 12px;
    color: #bbb;
    transition: color .25s
  }

  .tl-v-step.done .tl-v-node {
    border-color: #2a7de1;
    background: #2a7de1
  }

  .tl-v-step.done .tl-v-node i {
    color: #fff
  }

  .tl-v-step.active .tl-v-node {
    border-color: #2a7de1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 125, 225, .18)
  }

  .tl-v-step.active .tl-v-node i {
    color: #2a7de1
  }

  .tl-v-step.pending .tl-v-node {
    border-color: #e0e0e0;
    background: #f5f5f5
  }

  .tl-v-step.pending .tl-v-node i {
    color: #c8c8c8
  }

  .tl-v-info {
    display: flex;
    flex-direction: column;
    padding-top: 5px
  }

  .tl-v-title {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    line-height: 1.3
  }

  .tl-v-date {
    font-size: 10px;
    color: #aaa;
    margin-top: 1px
  }

  .tl-v-step.done .tl-v-title {
    color: #2a7de1
  }

  .tl-v-step.active .tl-v-title {
    color: #2a7de1
  }

  /* Scroll hint */
  .tl-scroll-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(transparent, rgba(255, 255, 255, .95));
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px
  }

  .tl-scroll-hint span {
    font-size: 10px;
    color: #aaa
  }

  /* Step counter badge */
  .tl-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 10px;
    background: #eef4ff;
    color: #2a7de1;
    border-radius: 10px;
    padding: 2px 8px;
    font-weight: 600;
    z-index: 10
  }

  /* Responsive */
  @media(max-width:767px) {
    .tl-desktop {
      display: none !important
    }

    .tl-mobile {
      display: block
    }
  }

  @media(min-width:768px) {
    .tl-mobile {
      display: none !important
    }

    .tl-desktop {
      display: flex
    }
  }

  /* Page preview */
