        :root {
            --primary-color: #2c5aa0;
            --secondary-color: #4a90e2;
            --accent-color: #00d4aa;
            --danger-color: #e74c3c;
            --light-bg: #f8fafc;
            --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            pointer-events: none;
        }

        .floating-medical {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .medical-item {
            position: absolute;
            color: rgba(255, 255, 255, 0.1);
            font-size: 24px;
        }

        .medical-item.capsule {
            animation: floatRotate 15s infinite ease-in-out;
        }

        .medical-item.heartbeat {
            animation: floatPulse 12s infinite ease-in-out;
        }

        .medical-item.stethoscope {
            animation: floatSway 18s infinite ease-in-out;
        }

        .medical-item.syringe {
            animation: floatRotate 20s infinite ease-in-out;
        }

        .medical-item.cross {
            animation: floatGlow 14s infinite ease-in-out;
        }

        .medical-item.dna {
            animation: floatTwist 22s infinite ease-in-out;
        }

        /* Random positioning and sizing for each medical object with immediate start */
        .medical-item:nth-child(1) { 
            left: 8%; 
            top: 15%; 
            font-size: 22px;
            animation: floatDiagonal1 16s infinite ease-in-out;
        }
        .medical-item:nth-child(2) { 
            left: 73%; 
            top: 45%; 
            font-size: 35px;
            animation: floatCircular 18s infinite ease-in-out;
        }
        .medical-item:nth-child(3) { 
            left: 22%; 
            top: 78%; 
            font-size: 18px;
            animation: floatZigzag 14s infinite ease-in-out;
        }
        .medical-item:nth-child(4) { 
            left: 91%; 
            top: 25%; 
            font-size: 28px;
            animation: floatWave 20s infinite ease-in-out;
        }
        .medical-item:nth-child(5) { 
            left: 45%; 
            top: 92%; 
            font-size: 16px;
            animation: floatSpiral 15s infinite ease-in-out;
        }
        .medical-item:nth-child(6) { 
            left: 67%; 
            top: 8%; 
            font-size: 42px;
            animation: floatPendulum 19s infinite ease-in-out;
        }
        .medical-item:nth-child(7) { 
            left: 12%; 
            top: 58%; 
            font-size: 25px;
            animation: floatFigure8 17s infinite ease-in-out;
        }
        .medical-item:nth-child(8) { 
            left: 88%; 
            top: 71%; 
            font-size: 19px;
            animation: floatBounce 13s infinite ease-in-out;
        }
        .medical-item:nth-child(9) { 
            left: 34%; 
            top: 33%; 
            font-size: 31px;
            animation: floatOrbit 21s infinite ease-in-out;
        }
        .medical-item:nth-child(10) { 
            left: 58%; 
            top: 85%; 
            font-size: 26px;
            animation: floatDrift 16s infinite ease-in-out;
        }

        @keyframes floatDiagonal1 {
            0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.6; }
            12% { transform: translate(15px, -20px) rotate(45deg) scale(1.4); opacity: 0.8; }
            25% { transform: translate(30px, -40px) rotate(90deg) scale(0.7); opacity: 0.9; }
            38% { transform: translate(10px, -60px) rotate(135deg) scale(1.2); opacity: 0.7; }
            50% { transform: translate(-20px, -80px) rotate(180deg) scale(0.9); opacity: 0.8; }
            62% { transform: translate(20px, -65px) rotate(225deg) scale(1.6); opacity: 0.6; }
            75% { transform: translate(40px, -50px) rotate(270deg) scale(0.8); opacity: 0.9; }
            88% { transform: translate(20px, -25px) rotate(315deg) scale(1.1); opacity: 0.7; }
            100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.6; }
        }

        @keyframes floatCircular {
            0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            15% { transform: translate(25px, 15px) scale(0.6); opacity: 0.8; }
            25% { transform: translate(50px, 30px) scale(1.5); opacity: 0.9; }
            40% { transform: translate(35px, 50px) scale(0.8); opacity: 0.7; }
            50% { transform: translate(0, 60px) scale(1.3); opacity: 0.9; }
            65% { transform: translate(-35px, 50px) scale(0.5); opacity: 0.6; }
            75% { transform: translate(-50px, 30px) scale(1.4); opacity: 0.8; }
            90% { transform: translate(-25px, 15px) scale(0.9); opacity: 0.7; }
            100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
        }

        @keyframes floatZigzag {
            0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
            8% { transform: translate(12px, -8px) scale(1.3); opacity: 0.9; }
            16% { transform: translate(25px, -15px) scale(0.6); opacity: 0.8; }
            24% { transform: translate(-15px, -25px) scale(1.5); opacity: 0.6; }
            32% { transform: translate(-30px, -30px) scale(0.8); opacity: 0.9; }
            40% { transform: translate(18px, -38px) scale(1.2); opacity: 0.7; }
            48% { transform: translate(35px, -45px) scale(0.5); opacity: 0.8; }
            56% { transform: translate(-12px, -52px) scale(1.4); opacity: 0.9; }
            64% { transform: translate(-25px, -60px) scale(0.7); opacity: 0.6; }
            72% { transform: translate(15px, -52px) scale(1.1); opacity: 0.8; }
            80% { transform: translate(30px, -45px) scale(0.9); opacity: 0.7; }
            88% { transform: translate(-10px, -25px) scale(1.3); opacity: 0.6; }
            96% { transform: translate(15px, -15px) scale(0.8); opacity: 0.8; }
            100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
        }

        @keyframes floatWave {
            0% { transform: translate(0, 0) rotateY(0deg) scale(1); opacity: 0.6; }
            12% { transform: translate(-20px, 10px) rotateY(45deg) scale(0.7); opacity: 0.8; }
            25% { transform: translate(-40px, 20px) rotateY(90deg) scale(1.4); opacity: 0.9; }
            38% { transform: translate(-60px, 10px) rotateY(135deg) scale(0.9); opacity: 0.7; }
            50% { transform: translate(-80px, 0) rotateY(180deg) scale(1.2); opacity: 0.9; }
            62% { transform: translate(-60px, -10px) rotateY(225deg) scale(0.6); opacity: 0.8; }
            75% { transform: translate(-40px, -20px) rotateY(270deg) scale(1.5); opacity: 0.7; }
            88% { transform: translate(-20px, -10px) rotateY(315deg) scale(0.8); opacity: 0.9; }
            100% { transform: translate(0, 0) rotateY(360deg) scale(1); opacity: 0.6; }
        }

        @keyframes floatSpiral {
            0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.5; }
            10% { transform: translate(10px, -15px) rotate(36deg) scale(1.6); opacity: 0.7; }
            20% { transform: translate(20px, -30px) rotate(72deg) scale(0.4); opacity: 0.8; }
            30% { transform: translate(15px, -45px) rotate(108deg) scale(1.3); opacity: 0.9; }
            40% { transform: translate(0, -60px) rotate(144deg) scale(0.7); opacity: 0.6; }
            50% { transform: translate(-15px, -45px) rotate(180deg) scale(1.5); opacity: 0.8; }
            60% { transform: translate(-20px, -30px) rotate(216deg) scale(0.5); opacity: 0.9; }
            70% { transform: translate(-10px, -15px) rotate(252deg) scale(1.2); opacity: 0.7; }
            80% { transform: translate(5px, -8px) rotate(288deg) scale(0.9); opacity: 0.8; }
            90% { transform: translate(0, -5px) rotate(324deg) scale(1.4); opacity: 0.6; }
            100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.5; }
        }

        @keyframes floatPendulum {
            0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.6; }
            16% { transform: translate(30px, 5px) rotate(8deg) scale(0.8); opacity: 0.8; }
            25% { transform: translate(60px, 10px) rotate(15deg) scale(1.3); opacity: 0.9; }
            41% { transform: translate(30px, 15px) rotate(8deg) scale(0.6); opacity: 0.7; }
            50% { transform: translate(0, 20px) rotate(0deg) scale(1.5); opacity: 0.9; }
            58% { transform: translate(-30px, 15px) rotate(-8deg) scale(0.9); opacity: 0.8; }
            75% { transform: translate(-60px, 10px) rotate(-15deg) scale(1.1); opacity: 0.7; }
            83% { transform: translate(-30px, 5px) rotate(-8deg) scale(0.7); opacity: 0.8; }
            100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.6; }
        }

        @keyframes floatFigure8 {
            0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
            6% { transform: translate(12px, -10px) scale(1.2); opacity: 0.8; }
            12% { transform: translate(25px, -20px) scale(0.6); opacity: 0.9; }
            18% { transform: translate(32px, -10px) scale(1.4); opacity: 0.6; }
            25% { transform: translate(35px, 0) scale(0.8); opacity: 0.9; }
            31% { transform: translate(32px, 10px) scale(1.3); opacity: 0.7; }
            37% { transform: translate(25px, 20px) scale(0.5); opacity: 0.8; }
            43% { transform: translate(12px, 10px) scale(1.1); opacity: 0.6; }
            50% { transform: translate(0, 0) scale(0.9); opacity: 0.8; }
            56% { transform: translate(-12px, -10px) scale(1.5); opacity: 0.9; }
            62% { transform: translate(-25px, -20px) scale(0.7); opacity: 0.7; }
            68% { transform: translate(-32px, -10px) scale(1.2); opacity: 0.8; }
            75% { transform: translate(-35px, 0) scale(0.6); opacity: 0.9; }
            81% { transform: translate(-32px, 10px) scale(1.4); opacity: 0.6; }
            87% { transform: translate(-25px, 20px) scale(0.8); opacity: 0.8; }
            93% { transform: translate(-12px, 10px) scale(1.1); opacity: 0.7; }
            100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
        }

        @keyframes floatBounce {
            0% { transform: translate(0, 0) scaleY(1) scaleX(1); opacity: 0.6; }
            8% { transform: translate(3px, -12px) scaleY(0.7) scaleX(1.3); opacity: 0.8; }
            16% { transform: translate(15px, -50px) scaleY(1.5) scaleX(0.6); opacity: 0.9; }
            24% { transform: translate(22px, -35px) scaleY(0.9) scaleX(1.4); opacity: 0.7; }
            32% { transform: translate(30px, -20px) scaleY(1.2) scaleX(0.5); opacity: 0.8; }
            40% { transform: translate(25px, -8px) scaleY(0.6) scaleX(1.6); opacity: 0.9; }
            48% { transform: translate(18px, -25px) scaleY(1.4) scaleX(0.8); opacity: 0.6; }
            56% { transform: translate(15px, -35px) scaleY(0.8) scaleX(1.3); opacity: 0.8; }
            64% { transform: translate(12px, -18px) scaleY(1.1) scaleX(0.7); opacity: 0.9; }
            72% { transform: translate(8px, -5px) scaleY(0.9) scaleX(1.2); opacity: 0.7; }
            80% { transform: translate(5px, -15px) scaleY(1.3) scaleX(0.6); opacity: 0.8; }
            88% { transform: translate(2px, -8px) scaleY(0.7) scaleX(1.4); opacity: 0.6; }
            96% { transform: translate(1px, -2px) scaleY(1.1) scaleX(0.9); opacity: 0.8; }
            100% { transform: translate(0, 0) scaleY(1) scaleX(1); opacity: 0.6; }
        }

        @keyframes floatOrbit {
            0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.5; }
            12% { transform: translate(22px, -22px) rotate(45deg) scale(0.6); opacity: 0.7; }
            25% { transform: translate(45px, -45px) rotate(90deg) scale(1.4); opacity: 0.8; }
            37% { transform: translate(32px, -67px) rotate(135deg) scale(0.8); opacity: 0.9; }
            50% { transform: translate(0, -90px) rotate(180deg) scale(1.2); opacity: 0.9; }
            62% { transform: translate(-32px, -67px) rotate(225deg) scale(0.5); opacity: 0.7; }
            75% { transform: translate(-45px, -45px) rotate(270deg) scale(1.6); opacity: 0.8; }
            87% { transform: translate(-22px, -22px) rotate(315deg) scale(0.9); opacity: 0.6; }
            100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.5; }
        }

        @keyframes floatDrift {
            0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.6; filter: brightness(1); }
            11% { transform: translate(-10px, 13px) rotate(40deg) scale(1.3); opacity: 0.7; filter: brightness(1.2); }
            22% { transform: translate(-20px, 26px) rotate(80deg) scale(0.6); opacity: 0.8; filter: brightness(1.4); }
            33% { transform: translate(-30px, 40px) rotate(120deg) scale(1.5); opacity: 0.8; filter: brightness(1.3); }
            44% { transform: translate(-15px, 30px) rotate(160deg) scale(0.8); opacity: 0.9; filter: brightness(0.9); }
            55% { transform: translate(15px, 10px) rotate(200deg) scale(1.2); opacity: 0.6; filter: brightness(1.1); }
            66% { transform: translate(45px, -25px) rotate(240deg) scale(0.5); opacity: 0.7; filter: brightness(0.9); }
            77% { transform: translate(30px, -15px) rotate(280deg) scale(1.4); opacity: 0.8; filter: brightness(1.3); }
            88% { transform: translate(15px, -5px) rotate(320deg) scale(0.9); opacity: 0.7; filter: brightness(1.1); }
            100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.6; filter: brightness(1); }
        }

        /* Legacy animations for fallback with dynamic scaling */
        @keyframes floatRotate {
            0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
            10% { transform: rotate(36deg) scale(0.7); opacity: 0.7; }
            20% { transform: rotate(72deg) scale(1.4); opacity: 0.8; }
            30% { transform: rotate(108deg) scale(0.5); opacity: 0.9; }
            40% { transform: rotate(144deg) scale(1.2); opacity: 0.6; }
            50% { transform: rotate(180deg) scale(0.8); opacity: 0.9; }
            60% { transform: rotate(216deg) scale(1.5); opacity: 0.7; }
            70% { transform: rotate(252deg) scale(0.6); opacity: 0.8; }
            80% { transform: rotate(288deg) scale(1.3); opacity: 0.7; }
            90% { transform: rotate(324deg) scale(0.9); opacity: 0.8; }
            100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
        }

        @keyframes floatPulse {
            0% { transform: scale(1); opacity: 0.5; filter: brightness(1); }
            8% { transform: scale(0.6); opacity: 0.6; filter: brightness(1.2); }
            16% { transform: scale(1.5); opacity: 0.7; filter: brightness(1.4); }
            24% { transform: scale(0.4); opacity: 0.8; filter: brightness(0.9); }
            32% { transform: scale(1.3); opacity: 0.9; filter: brightness(1.3); }
            40% { transform: scale(0.7); opacity: 0.6; filter: brightness(1.1); }
            48% { transform: scale(1.6); opacity: 0.8; filter: brightness(1.5); }
            56% { transform: scale(0.5); opacity: 0.9; filter: brightness(0.8); }
            64% { transform: scale(1.2); opacity: 0.7; filter: brightness(1.2); }
            72% { transform: scale(0.8); opacity: 0.8; filter: brightness(1.0); }
            80% { transform: scale(1.4); opacity: 0.6; filter: brightness(1.3); }
            88% { transform: scale(0.9); opacity: 0.7; filter: brightness(1.1); }
            96% { transform: scale(1.1); opacity: 0.8; filter: brightness(1.0); }
            100% { transform: scale(1); opacity: 0.5; filter: brightness(1); }
        }

        @keyframes floatSway {
            0% { transform: translateX(0) rotate(0deg) scale(1); opacity: 0.6; }
            10% { transform: translateX(-15px) rotate(-5deg) scale(1.3); opacity: 0.7; }
            20% { transform: translateX(-30px) rotate(-10deg) scale(0.6); opacity: 0.8; }
            30% { transform: translateX(-20px) rotate(-7deg) scale(1.5); opacity: 0.9; }
            40% { transform: translateX(20px) rotate(8deg) scale(0.8); opacity: 0.7; }
            50% { transform: translateX(40px) rotate(15deg) scale(1.2); opacity: 0.9; }
            60% { transform: translateX(30px) rotate(12deg) scale(0.5); opacity: 0.8; }
            70% { transform: translateX(10px) rotate(3deg) scale(1.4); opacity: 0.6; }
            80% { transform: translateX(-10px) rotate(-3deg) scale(0.9); opacity: 0.8; }
            90% { transform: translateX(-20px) rotate(-5deg) scale(1.1); opacity: 0.7; }
            100% { transform: translateX(0) rotate(0deg) scale(1); opacity: 0.6; }
        }

        @keyframes floatGlow {
            0% { opacity: 0.4; filter: brightness(1) blur(0px); transform: scale(1); }
            10% { opacity: 0.6; filter: brightness(1.3) blur(1px); transform: scale(0.7); }
            20% { opacity: 0.8; filter: brightness(1.6) blur(0px); transform: scale(1.4); }
            30% { opacity: 0.5; filter: brightness(0.9) blur(2px); transform: scale(0.5); }
            40% { opacity: 0.9; filter: brightness(1.4) blur(1px); transform: scale(1.3); }
            50% { opacity: 0.7; filter: brightness(0.8) blur(0px); transform: scale(0.8); }
            60% { opacity: 0.8; filter: brightness(1.5) blur(1px); transform: scale(1.5); }
            70% { opacity: 0.6; filter: brightness(1.2) blur(2px); transform: scale(0.6); }
            80% { opacity: 0.9; filter: brightness(1.4) blur(0px); transform: scale(1.2); }
            90% { opacity: 0.5; filter: brightness(1.1) blur(1px); transform: scale(0.9); }
            100% { opacity: 0.4; filter: brightness(1) blur(0px); transform: scale(1); }
        }

        @keyframes floatTwist {
            0% { transform: rotateY(0deg) rotateX(0deg) scale(1); opacity: 0.5; }
            12% { transform: rotateY(45deg) rotateX(10deg) scale(0.6); opacity: 0.7; }
            25% { transform: rotateY(90deg) rotateX(15deg) scale(1.4); opacity: 0.8; }
            37% { transform: rotateY(135deg) rotateX(10deg) scale(0.8); opacity: 0.9; }
            50% { transform: rotateY(180deg) rotateX(0deg) scale(1.2); opacity: 0.9; }
            62% { transform: rotateY(225deg) rotateX(-10deg) scale(0.5); opacity: 0.7; }
            75% { transform: rotateY(270deg) rotateX(-15deg) scale(1.5); opacity: 0.8; }
            87% { transform: rotateY(315deg) rotateX(-10deg) scale(0.9); opacity: 0.6; }
            100% { transform: rotateY(360deg) rotateX(0deg) scale(1); opacity: 0.5; }
        } filter: brightness(1) blur(0px); }
        }

        @keyframes floatTwist {
            0% { transform: rotateY(0deg) rotateX(0deg); opacity: 0.5; }
            25% { transform: rotateY(90deg) rotateX(15deg); opacity: 0.8; }
            50% { transform: rotateY(180deg) rotateX(0deg); opacity: 0.9; }
            75% { transform: rotateY(270deg) rotateX(-15deg); opacity: 0.7; }
            100% { transform: rotateY(360deg) rotateX(0deg); opacity: 0.5; }
        }

        /* ECG Wave Effect */
        .ecg-wave {
            position: absolute;
            left: 10%;
            top: 20%;
            width: 80%;
            height: 2px;
            background: rgba(0, 212, 170, 0.3);
            animation: ecgMove 15s infinite ease-in-out;
        }

        .ecg-wave::before {
            content: '';
            position: absolute;
            left: 0;
            top: -10px;
            width: 100px;
            height: 20px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0 10 L20 10 L25 0 L30 20 L35 5 L40 15 L45 10 L100 10" stroke="rgba(0,212,170,0.6)" stroke-width="2" fill="none"/></svg>');
            animation: ecgPulse 3s infinite ease-in-out;
        }

        @keyframes ecgMove {
            0%, 100% { transform: translateX(-100px); opacity: 0.3; }
            50% { transform: translateX(calc(100vw - 100px)); opacity: 0.8; }
        }

        @keyframes ecgPulse {
            0%, 100% { transform: scaleY(1); }
            50% { transform: scaleY(1.5); }
        }

        .login-container {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 450px;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .login-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        }

        .logo-section {
            text-align: center;
            margin-bottom: 35px;
        }

        .logo-icon {

            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;

            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .logo-icon i {
            font-size: 40px;
            color: white;
        }

        .system-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .system-subtitle {
            color: #6c757d;
            font-size: 16px;
            font-weight: 400;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-label {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-control {
            height: 55px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 0 20px 0 50px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.9);
        }

        .form-control:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
            background: white;
        }

        .input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #adb5bd;
            font-size: 18px;
            z-index: 5;
        }

        .password-toggle {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #adb5bd;
            cursor: pointer;
            font-size: 18px;
            transition: color 0.3s ease;
        }

        .password-toggle:hover {
            color: var(--secondary-color);
        }

        .remember-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .custom-checkbox {
            display: flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }

        .custom-checkbox input {
            opacity: 0;
            position: absolute;
        }

        .checkmark {
            width: 20px;
            height: 20px;
            border: 2px solid #dee2e6;
            border-radius: 4px;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .custom-checkbox input:checked + .checkmark {
            background: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        .custom-checkbox input:checked + .checkmark::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: white;
            font-size: 12px;
        }

        .forgot-link {
            color: var(--secondary-color);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .forgot-link:hover {
            color: var(--primary-color);
            text-decoration: none;
        }

        .login-btn {
            width: 100%;
            height: 55px;
            background: linear-gradient(90deg, #7b3fe4, #1e90ff);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 18px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .login-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #1e90ff, #7b3fe4);
            transition: left 0.3s ease;
        }

        .login-btn:hover::before {
            left: 0;
        }

        .login-btn span {
            position: relative;
            z-index: 2;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(44, 90, 160, 0.4);
        }

        .divider {
            text-align: center;
            margin: 30px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #dee2e6;
        }

        .divider span {
            background: rgba(255, 255, 255, 0.95);
            padding: 0 20px;
            color: #6c757d;
            font-size: 14px;
        }

        .quick-access {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .role-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.7);
            color: #6c757d;
            text-decoration: none;
            text-align: center;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .role-btn:hover {
            border-color: var(--secondary-color);
            color: var(--secondary-color);
            background: rgba(74, 144, 226, 0.1);
            text-decoration: none;
        }

        .footer-text {
            text-align: center;
            margin-top: 30px;
            color: #6c757d;
            font-size: 14px;
        }

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 24px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #e9ecef;
            border-top: 4px solid var(--secondary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 30px 25px;
                margin: 10px;
            }
            
            .system-title {
                font-size: 24px;
            }
            
            .quick-access {
                flex-direction: column;
            }
        }


    h4 {
      font-size: 20px;
      color: #000000ff;
    }
    .highlight {
      color: #be0b98ff; /* Orange color */
      font-size: 22px;
      font-weight: bold;
      font-family: "Poppins", "Segoe UI", "Inter", sans-serif;
      transition: all 0.5s ease;
    }

.custom-alert {
  width: 100%;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Poppins", "Segoe UI", "Inter", sans-serif;
  color: #fff;
  background: linear-gradient(90deg, #fa709a 0%, #fee140 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(190, 11, 152, 0.5);
  text-align: center;
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}


/* ======= MOBILE RESPONSIVE OPTIMIZATION ======= */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px !important;
        margin: 10px auto !important;
        max-width: 95vw !important;
    }
    
    .logo-section h1.logo-icon img {
        width: 150px !important;
    }
    
    h4.mt-3 {
        font-size: 14px !important;
        margin-top: 10px !important;
    }
    
    .form-group {
        margin-bottom: 16px !important;
    }
    
    .form-label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    
    .form-control {
        height: 42px !important;
        font-size: 15px !important;
        padding-left: 40px !important;
    }
    
    .input-icon {
        font-size: 16px !important;
        left: 14px !important;
    }
    
    .password-toggle {
        font-size: 16px !important;
        right: 14px !important;
    }
    
    .remember-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
        font-size: 12px !important;
    }
    
    .login-btn {
        height: 46px !important;
        font-size: 15px !important;
    }
    
    .footer-text {
        font-size: 12px !important;
        margin-top: 16px !important;
    }
}

.renewal-message {
  background: linear-gradient(90deg, #fa709a 0%, #fee140 100%) !important;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 1.2rem 1rem;
  margin: 2rem 0 0 0;
  box-shadow: 0 2px 12px rgba(241,70,253,0.09);
  text-align: center;
  font-size: 1.1em;
  letter-spacing: 0.02em;
}
