        :root {
            --primary-red: #A61F2B;
            --dark-blue: #1E2340;
            --glass-bg: rgba(255, 255, 255, 0.06);
            --glass-border: rgba(255, 255, 255, 0.15);
            --hover-light: #ffffff; 
        }

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

        body {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--dark-blue);
            font-family: "Source Sans Pro", Helvetica, sans-serif;
            overflow: hidden;
            padding: 20px;
        }

        /* --- WARSTWA 1: GRADIENT ANIMACJA --- */
        .aura-wrapper {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: -2;
            background: radial-gradient(circle at 50% 50%, #252b4d 0%, var(--dark-blue) 100%);
        }

        .aura-blob {
            position: absolute;
            width: 60vw; height: 60vw;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.35;
            animation: moveAura 25s infinite alternate ease-in-out;
        }
        .aura-red { background: var(--primary-red); top: -10%; left: -10%; }
        .aura-blue { background: #4a54a4; bottom: -10%; right: -10%; animation-delay: -7s; }

        @keyframes moveAura {
            0% { transform: translate(0, 0) scale(1) rotate(0deg); }
            50% { transform: translate(15%, 10%) scale(1.1) rotate(45deg); }
            100% { transform: translate(-5%, -15%) scale(1) rotate(-45deg); }
        }

        /* --- WARSTWA 2: PARTICLES --- */
        #particle-canvas {
            position: fixed;
            top: 0; left: 0;
            z-index: -1;
            pointer-events: none;
        }

        /* --- WARSTWA 3: KARTA --- */
        .login-card {
            width: 100%;
            max-width: 950px;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 40px 100px rgba(0,0,0,0.5);
            animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative;
            max-height: 90vh;
            overflow-y: auto;       /* scrollbar jeśli nie mieści się na wysokość */
            scrollbar-width: none;  /* ukrywa scrollbar w Firefox */
            -ms-overflow-style: none; /* ukrywa scrollbar w IE/Edge */
        }
        /* ukrywa scrollbar w nowych przegladarkach */
        .login-card::-webkit-scrollbar {
            display: none;
        }

        @keyframes cardEntrance {
            from { opacity: 0; transform: translateY(30px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* header */
        .card-header {
            padding: 30px 45px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--glass-border);
        }

        .logo-img {
            width: 45px;
            height: 45px;
            object-fit: contain;
            margin-right: 15px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .logo-img:hover {
            width: 50px;
            height: 50px;
            transition: all 0.3s ease;
        }

        .brand-name { font-size: 1.5rem; font-weight: 600; letter-spacing: 1px; color: #fff; }

        /* inside */
        .card-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            padding: 50px;
            gap: 60px;
        }

        .welcome-section h1 {
            font-size: 3rem; font-weight: 300; margin-bottom: 20px; line-height: 1.1; color: #fff;
        }

        .welcome-section p {
            color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.6;
        }

        /* form */
        .input-group { position: relative; margin-bottom: 20px; }

        input[type="email"], input[type="password"], input[type="text"] {
            width: 100%;
            padding: 16px 20px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            color: #fff;
            transition: all 0.3s ease;
        }

        input:focus {
            background: rgba(255,255,255,0.1);
            border-color: var(--primary-red);
            outline: none;
            box-shadow: 0 0 20px rgba(166, 31, 43, 0.2);
        }

        /* checkbox */
        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin: 15px 0 25px 0;
            text-align: left;
        }
        
        .checkbox-group input[type="checkbox"] {
            display: none;
        }
        
        /* label */
        .checkbox-group label {
            position: relative;
            padding-left: 30px;
            cursor: pointer;
            font-size: 0.85rem;
            line-height: 1.4;
            color: rgba(255, 255, 255, 0.6) !important;
            text-transform: none; 
            letter-spacing: 0;
        }
        
        .checkbox-group label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 2px;
            width: 20px;
            height: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .checkbox-group input[type="checkbox"]:checked + label::before {
            background: var(--primary-red);
            border-color: var(--primary-red);
            box-shadow: 0 0 10px rgba(166, 31, 43, 0.4);
        }
        
        .checkbox-group label::after {
            content: '';
            position: absolute;
            left: 7px;
            top: 5px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        
        .checkbox-group input[type="checkbox"]:checked + label::after {
            opacity: 1;
        }
        
        .checkbox-group label a {
            color: var(--primary-red) !important;
            text-decoration: none !important;
            border-bottom: none !important;
            font-weight: 600;
            transition: color 0.3s;
        }
        
        .checkbox-group label a:hover {
            color: var(--hover-light) !important;
            text-decoration: none !important;
            border-bottom: none !important;
        }

        /* buttons */
        .btn {
            width: 100%;
            height: 54px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 12px;
            font-weight: 600;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            border: none;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--primary-red);
            color: white !important;
            margin-bottom: 15px;
            box-shadow: 0 10px 25px rgba(166, 31, 43, 0.3);
        }

        .btn-primary:hover {
            background: #c22533;
            color: #ffffff !important;
            transform: translateY(-2px);
            box-shadow: 0 15px 35px rgba(166, 31, 43, 0.5);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.3);
            color: white !important;
        }

        .btn-outline:hover {
            background: rgba(255,255,255,0.1);
            border-color: var(--hover-light);
            color: var(--hover-light) !important;
        }

        .forgot-link {
            display: block; text-align: center; margin-top: 15px;
            font-size: 0.9rem; color: rgba(255,255,255,0.5);
            text-decoration: none !important;
            border-bottom: none !important;
            transition: 0.3s;
        }
        .forgot-link:hover { 
            color: var(--hover-light); 
            text-decoration: none !important;
        }

        @media (max-width: 900px) {
            .card-body { grid-template-columns: 1fr; padding: 40px; gap: 30px; }
            .welcome-section { text-align: center; }
            .welcome-section h1 { font-size: 2.2rem; }
            .card-header { justify-content: center; }
        }

        /* MSG BOX */
        .msg { padding: 15px; border-radius: 10px; margin-bottom: 25px; text-align: center; font-size: 0.9rem; }
        .msg-error { background: rgba(166, 31, 43, 0.2); border: 1px solid var(--primary-red); color: #ffb1b8; }
        .msg-info { background: rgba(43, 166, 125, 0.15); border: 1px solid #2ba67d; color: #87ffcf; }

        /* copyrights */
        .cc-note{
        position: fixed;
        bottom: 10px;
        left: 10px;
        font-size: clamp(0.6rem, 1.2vw, 0.8rem);
        color: #333;
        padding: 4px 8px;
        font-family: Arial, sans-serif;
        z-index: 9999;
        white-space: nowrap;
        }