
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            min-height: 100svh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 0;
        }
        .login-container { width: 100%; max-width: 450px; padding: 20px; margin: 0 auto; }
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            padding: 40px;
        }
        .login-logo {
            text-align: center;
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .login-logo .logo-img { 
            width: min(72vw, 300px); 
            height: auto; 
            display: block;
            margin: 0 auto 10px;
            object-fit: contain;
            object-position: center;
        }
        .login-logo h1 { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 5px; }
        .login-logo span { color: #666; font-size: 14px; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s;
        }
        .form-control:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
        .btn-login {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s;
        }
        .btn-login:hover { transform: translateY(-2px); }
        /* ** EDITADO COM CODEX EM 18/05/2026 AS 09:07 */
        .btn-request-access {
            width: 100%;
            padding: 11px;
            background: #ffffff;
            color: #667eea;
            border: 1px solid #d7ddff;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 12px;
            transition: all 0.2s ease;
        }
        .btn-request-access:hover { background: #f8f9ff; border-color: #667eea; transform: translateY(-1px); }
        .alert { padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
        .alert-danger { background: #fee; color: #c33; border: 1px solid #fcc; }
        .alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
        .footer { text-align: center; margin-top: 20px; color: rgba(255,255,255,0.8); font-size: 12px; }
        .modal-content { border: none; border-radius: 16px; overflow: hidden; }
        .modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
        .webcam-box {
            border: 1px dashed #c7d2fe;
            border-radius: 12px;
            padding: 12px;
            background: #f8f9ff;
        }
        .webcam-preview {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
        }
        #webcamVideo {
            width: min(100%, 340px);
            aspect-ratio: 1 / 1;
            max-height: none;
            border-radius: 10px;
            background: #111827;
            display: none;
            object-fit: cover;
            margin: 0 auto;
        }
        .webcam-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-top: 10px;
        }
        @media (max-width: 576px) {
            body {
                align-items: flex-start;
                padding: max(18px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
            }
            .login-container {
                max-width: 100%;
                padding: 14px;
            }
            .login-card {
                width: 100%;
                padding: 28px 22px;
                border-radius: 16px;
            }
            .login-logo {
                margin-bottom: 24px;
            }
            .login-logo .logo-img {
                width: min(78vw, 280px);
                height: auto;
                max-width: 100%;
            }
            .login-logo h1 {
                font-size: 24px;
                line-height: 1.15;
                text-align: center;
            }
            .login-logo span {
                display: block;
                text-align: center;
            }
            .footer {
                padding: 0 10px;
                line-height: 1.4;
            }
        }
    