    /* =============================================
    LIMS - Login Page Styles
    ============================================= */

    @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
        font-family: 'DM Sans', sans-serif;
        background: #0a2540;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    /* ===== BACKGROUND ===== */
    .bg-shapes {
        position: fixed; inset: 0; z-index: 0; pointer-events: none;
    }
    .shape {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
    }
    .shape-1 { width: 600px; height: 600px; background: #0f4c81; top: -200px; left: -200px; animation: float1 12s ease-in-out infinite; }
    .shape-2 { width: 500px; height: 500px; background: #00c9a7; bottom: -150px; right: -100px; animation: float2 14s ease-in-out infinite; }
    .shape-3 { width: 300px; height: 300px; background: #4895ef; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: float3 10s ease-in-out infinite; }

    @keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,20px) scale(1.05); } }
    @keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,30px) scale(1.08); } }
    @keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.1); } }

    /* ===== GRID OVERLAY ===== */
    .grid-overlay {
        position: fixed; inset: 0; z-index: 0;
        background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 50px 50px;
    }

    /* ===== CARD ===== */
    .login-wrapper {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 440px;
        padding: 20px;
        animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes cardIn {
        from { opacity: 0; transform: translateY(40px) scale(0.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .login-card {
        background: rgba(255,255,255,0.06);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 24px;
        padding: 40px 36px;
        box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    }

    /* ===== LOGO ===== */
    .login-logo {
        text-align: center;
        margin-bottom: 32px;
    }
    .logo-mark {
        width: 76px; height: 76px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 16px;
        font-size: 1.8rem;
        color: white;
        background: rgba(255,255,255,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(0,201,167,0.25);
        overflow: hidden;
    }
    .logo-seal-img {
        width: 100%; height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    /* Large, faint seal watermark centered behind the card */
    .seal-watermark {
        position: fixed; inset: 0; z-index: 1;
        display: flex; align-items: center; justify-content: center;
        pointer-events: none;
    }
    .seal-watermark img {
        width: min(70vh, 640px);
        height: min(70vh, 640px);
        border-radius: 50%;
        object-fit: cover;
        opacity: 0.06;
    }
    .login-logo h1 {
        font-family: 'Syne', sans-serif;
        font-size: 1.8rem;
        font-weight: 800;
        color: white;
        letter-spacing: -0.04em;
    }
    .login-logo h1 span { color: #00c9a7; }
    .login-logo p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

    /* ===== ROLE SELECT ===== */
    .role-options { display: flex; gap: 14px; margin-bottom: 8px; }

    .role-btn {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 26px 14px 20px;
        background: rgba(255,255,255,0.05);
        border: 1.5px solid rgba(255,255,255,0.12);
        border-radius: 18px;
        color: rgba(255,255,255,0.9);
        font-family: 'Syne', sans-serif;
        cursor: pointer;
        overflow: hidden;
        isolation: isolate;
        transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    /* Soft glow wash that fades in on hover, tinted per role via --glow */
    .role-btn::before {
        content: '';
        position: absolute; inset: 0;
        background: radial-gradient(120px 90px at 50% 0%, var(--glow, rgba(0,201,167,0.35)), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    .role-btn:hover::before { opacity: 1; }

    .role-btn--admin   { --glow: rgba(72,149,239,0.35); }
    .role-btn--student { --glow: rgba(0,201,167,0.35); }

    .role-btn-icon {
        width: 52px; height: 52px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 14px;
        font-size: 1.3rem;
        color: white;
        margin-bottom: 6px;
        transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    }
    .role-btn--admin .role-btn-icon {
        background: linear-gradient(135deg, #4895ef, #0f4c81);
        box-shadow: 0 6px 18px rgba(72,149,239,0.35);
    }
    .role-btn--student .role-btn-icon {
        background: linear-gradient(135deg, #00c9a7, #0f9770);
        box-shadow: 0 6px 18px rgba(0,201,167,0.35);
    }
    .role-btn:hover .role-btn-icon { transform: scale(1.1) rotate(-4deg); }

    .role-btn-label {
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        /* Longer labels like "Admin/Teacher" are wider than the button —
           without this, a flex item's default min-width:auto keeps it at
           its unbroken content width, overflowing past the button's edges
           and getting clipped by .role-btn's overflow:hidden instead of
           wrapping to a second line. */
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        text-align: center;
    }
    .role-btn-sub {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.68rem;
        font-weight: 400;
        color: rgba(255,255,255,0.45);
        text-align: center;
        line-height: 1.3;
    }

    .role-btn--admin:hover {
        transform: translateY(-4px);
        border-color: rgba(72,149,239,0.55);
        box-shadow: 0 12px 28px rgba(72,149,239,0.22);
        background: rgba(72,149,239,0.06);
    }
    .role-btn--student:hover {
        transform: translateY(-4px);
        border-color: rgba(0,201,167,0.55);
        box-shadow: 0 12px 28px rgba(0,201,167,0.22);
        background: rgba(0,201,167,0.06);
    }
    .role-btn:active { transform: translateY(-1px) scale(0.98); }

    .role-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        color: rgba(255,255,255,0.5);
        font-size: 0.78rem;
        cursor: pointer;
        font-family: inherit;
        margin-bottom: 4px;
        padding: 0;
    }
    .role-back:hover { color: rgba(255,255,255,0.8); }

    /* ===== FORM ===== */
    .login-form { display: flex; flex-direction: column; gap: 16px; }

    .input-group { display: flex; flex-direction: column; gap: 6px; }
    .input-group label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 0.03em; }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }
    .input-wrapper i {
        position: absolute;
        left: 14px;
        color: rgba(255,255,255,0.35);
        font-size: 0.9rem;
        pointer-events: none;
    }
    .input-wrapper input {
        width: 100%;
        padding: 12px 14px 12px 40px;
        background: rgba(255,255,255,0.06);
        border: 1.5px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        color: white;
        font-family: 'DM Sans', sans-serif;
        font-size: 0.9rem;
        outline: none;
        transition: all 0.2s ease;
    }
    .input-wrapper input:focus {
        background: rgba(255,255,255,0.1);
        border-color: #00c9a7;
        box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
    }
    .input-wrapper input::placeholder { color: rgba(255,255,255,0.25); }

    .toggle-pw {
        position: absolute;
        right: 14px;
        background: none;
        border: none;
        color: rgba(255,255,255,0.35);
        cursor: pointer;
        padding: 4px;
        transition: all 0.2s;
    }
    .toggle-pw:hover { color: rgba(255,255,255,0.7); }

    .error-msg {
        background: rgba(230,57,70,0.15);
        border: 1px solid rgba(230,57,70,0.3);
        border-radius: 10px;
        padding: 10px 14px;
        color: #ff6b76;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .error-msg.hidden { display: none; }
    .info-msg {
        background: rgba(72,149,239,0.15);
        border: 1px solid rgba(72,149,239,0.3);
        border-radius: 10px;
        padding: 10px 14px;
        color: #8ec5ff;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .info-msg.hidden { display: none; }
    .hidden { display: none !important; }

    .login-btn {
        width: 100%;
        padding: 13px;
        background: linear-gradient(135deg, #00c9a7, #0f4c81);
        border: none;
        border-radius: 12px;
        color: white;
        font-family: 'Syne', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 8px;
        position: relative;
        overflow: hidden;
    }
    .login-btn::before {
        content: '';
        position: absolute; inset: 0;
        background: rgba(255,255,255,0);
        transition: 0.3s;
    }
    .login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,201,167,0.4); }
    .login-btn:hover::before { background: rgba(255,255,255,0.08); }
    .login-btn:active { transform: translateY(0); }
    .login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    .login-footer {
        text-align: center;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
        font-size: 0.75rem;
        color: rgba(255,255,255,0.3);
    }
    .login-footer strong { color: rgba(255,255,255,0.5); }

    /* ===== DEFAULT CREDS ===== */
    .default-creds {
        background: rgba(0,201,167,0.08);
        border: 1px solid rgba(0,201,167,0.2);
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.78rem;
        color: rgba(255,255,255,0.55);
        text-align: center;
        margin-top: 4px;
    }
    .default-creds strong { color: #00c9a7; }

    /* =============================================
    ENHANCED LOGIN — Additional Polish
    ============================================= */

    /* Particle dots */
    .particle {
        position: absolute;
        width: 4px; height: 4px;
        border-radius: 50%;
        background: rgba(0,201,167,0.5);
        animation: drift linear infinite;
        pointer-events: none;
    }
    @keyframes drift {
        from { transform: translateY(100vh) scale(0); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 0.6; }
        to   { transform: translateY(-100px) scale(1.5); opacity: 0; }
    }

    /* Shake animation for wrong password */
    @keyframes shake {
        0%,100% { transform: translateX(0); }
        15%     { transform: translateX(-8px); }
        30%     { transform: translateX(8px); }
        45%     { transform: translateX(-6px); }
        60%     { transform: translateX(6px); }
        75%     { transform: translateX(-3px); }
        90%     { transform: translateX(3px); }
    }
    .shake { animation: shake 0.5s ease; }

    /* Input focus glow */
    .input-wrapper input:focus {
        box-shadow: 0 0 0 3px rgba(0,201,167,0.2), 0 0 20px rgba(0,201,167,0.08);
    }

    /* Button ripple */
    .login-btn {
        overflow: hidden;
    }
    .login-btn .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        transform: scale(0);
        animation: ripple-anim 0.6s linear;
        pointer-events: none;
    }
    @keyframes ripple-anim {
        to { transform: scale(4); opacity: 0; }
    }

    /* Success state */
    .login-btn.success-state {
        background: linear-gradient(135deg, #06d6a0, #0f9770) !important;
    }

    /* Field label animation */
    .input-group label {
        transition: color 0.2s ease;
    }
    .input-wrapper:focus-within ~ label,
    .input-wrapper input:focus ~ label { color: #00c9a7; }

    /* Bottom badge */
    .version-badge {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 99px;
        padding: 5px 14px;
        font-size: 0.7rem;
        color: rgba(255,255,255,0.3);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        z-index: 5;
    }

    /* ===== MOBILE ===== */
    @media (max-width: 480px) {
        html { font-size: 13px; }
        .login-wrapper { padding: 14px; }
        .login-card { padding: 24px 18px; border-radius: 16px; }
        .logo-mark { width: 56px; height: 56px; font-size: 1.3rem; }
        .seal-watermark img { width: min(50vh, 380px); height: min(50vh, 380px); }
        .login-logo { margin-bottom: 20px; }
        .login-logo h1 { font-size: 1.4rem; }
        .login-logo p { font-size: 0.72rem; }
        .shape-1 { width: 300px; height: 300px; }
        .shape-2 { width: 260px; height: 260px; }
        .input-wrapper input { font-size: 0.9rem; padding: 11px 12px 11px 36px; }
        .login-btn { padding: 12px; font-size: 0.9rem; }
        .default-creds { font-size: 0.72rem; padding: 10px 12px; }
        .version-badge { display: none; }
        .role-options { gap: 10px; }
        .role-btn { padding: 18px 8px 14px; border-radius: 14px; }
        .role-btn-icon { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 12px; margin-bottom: 4px; }
        .role-btn-label { font-size: 0.78rem; }
        .role-btn-sub { font-size: 0.62rem; }
    }

    @media (max-width: 360px) {
        .login-card { padding: 20px 14px; }
        .login-logo h1 { font-size: 1.2rem; }
    }
